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();