Skip to content

Commit

Permalink
fix: don't shutdown logger after flush
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19 committed Nov 18, 2024
1 parent b21b757 commit dc6a5da
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/utils/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,12 @@ mod logger_thread {
flush_logs_to_stderr(&mut buffer);
}
}
LoggerCommand::FlushAndShutdown => {
flush_logs_to_stderr(&mut buffer);
break;
}
LoggerCommand::Flush { finished_barrier } => {
flush_logs_to_stderr(&mut buffer);
finished_barrier.wait();
}
LoggerCommand::FlushAndShutdown => {
flush_logs_to_stderr(&mut buffer);
break;
}
}
Expand Down

0 comments on commit dc6a5da

Please sign in to comment.