aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/logging.cpp')
-rw-r--r--src/zencore/logging.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zencore/logging.cpp b/src/zencore/logging.cpp
index 0bf07affd..90f4e2428 100644
--- a/src/zencore/logging.cpp
+++ b/src/zencore/logging.cpp
@@ -328,6 +328,11 @@ std::shared_ptr<spdlog::logger> ConLogger;
void
SuppressConsoleLog()
{
+ if (ConLogger)
+ {
+ spdlog::drop("console");
+ ConLogger = {};
+ }
ConLogger = spdlog::null_logger_mt("console");
}