aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenutil/logging.cpp')
-rw-r--r--src/zenutil/logging.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/zenutil/logging.cpp b/src/zenutil/logging.cpp
index 2c1feb08a..5679fada2 100644
--- a/src/zenutil/logging.cpp
+++ b/src/zenutil/logging.cpp
@@ -196,17 +196,15 @@ FinishInitializeLogging(const LoggingOptions& LogOptions)
void
ShutdownLogging()
{
- g_FileSink.reset();
-
- if (!g_IsLoggingInitialized)
+ if (g_IsLoggingInitialized)
{
- return;
+ auto DefaultLogger = zen::logging::Default();
+ ZEN_LOG_INFO(DefaultLogger, "log ending at {}", zen::DateTime::Now().ToIso8601());
}
- auto DefaultLogger = zen::logging::Default();
- ZEN_LOG_INFO(DefaultLogger, "log ending at {}", zen::DateTime::Now().ToIso8601());
-
zen::logging::ShutdownLogging();
+
+ g_FileSink.reset();
}
} // namespace zen