From 60d5897de1229ad0260c2224142dd9dd503788ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20P=2E=20Bezerra?= Date: Sun, 17 Nov 2024 23:51:12 -0300 Subject: [PATCH] fix: don't shutdown logger after flush --- src/utils/logger.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/utils/logger.rs b/src/utils/logger.rs index 2c4a99cf..4f0bf535 100644 --- a/src/utils/logger.rs +++ b/src/utils/logger.rs @@ -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; } }