From 2d05a1f1999379944c0b4dab04d5608a8903a54e Mon Sep 17 00:00:00 2001 From: Stephen G Date: Tue, 23 Apr 2024 15:07:33 -0700 Subject: [PATCH] vs_logging.cpp: ... --- engine/src/vs_logging.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/engine/src/vs_logging.cpp b/engine/src/vs_logging.cpp index fd341a113..664806200 100644 --- a/engine/src/vs_logging.cpp +++ b/engine/src/vs_logging.cpp @@ -116,18 +116,16 @@ void VegaStrikeLogger::FlushLogs() { void VegaStrikeLogger::FlushLogsProgramExiting() { logging_core_->flush(); if (console_log_sink_) { - // logging_core_->remove_sink(console_log_sink_); + logging_core_->remove_sink(console_log_sink_); console_log_sink_->stop(); - console_log_sink_->feed_records(); console_log_sink_->flush(); } if (console_log_back_end_) { console_log_back_end_->flush(); } if (file_log_sink_) { - // logging_core_->remove_sink(file_log_sink_); + logging_core_->remove_sink(file_log_sink_); file_log_sink_->stop(); - file_log_sink_->feed_records(); file_log_sink_->flush(); } if (file_log_back_end_) { @@ -153,7 +151,7 @@ BOOST_LOG_GLOBAL_LOGGER_INIT(my_logger, severity_logger_mt) { return lg; } -VegaStrikeLogger::VegaStrikeLogger() : slg_(my_logger::get()), file_log_sink_(nullptr) { +VegaStrikeLogger::VegaStrikeLogger() : slg_(my_logger::get()), file_log_sink_(nullptr), file_log_back_end_(nullptr) { boost::filesystem::path::imbue(std::locale("C")); logging_core_ = boost::log::core::get(); // slg_ = my_logger::get();