Brett 2023-02-08 14:21:47 -05:00
parent 2a5314be57
commit 118b39c6f6
1 changed files with 1 additions and 1 deletions

View File

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