From 118b39c6f627cd0dbd70f1e872025ec8783e08a2 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 8 Feb 2023 14:21:47 -0500 Subject: [PATCH] dido --- src/blt/std/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blt/std/logging.cpp b/src/blt/std/logging.cpp index b9bade2..83687e9 100644 --- a/src/blt/std/logging.cpp +++ b/src/blt/std/logging.cpp @@ -100,7 +100,7 @@ namespace blt::logging { LogFileWriter writer{"./"}; void init(LOG_PROPERTIES properties) { - if (BLT_LOGGING_PROPERTIES.m_directory != properties.m_directory) + if (properties.m_logToFile && BLT_LOGGING_PROPERTIES.m_directory != properties.m_directory) writer = LogFileWriter{properties.m_directory}; if (properties.m_logToFile) std::filesystem::create_directory(properties.m_directory);