diff --git a/logger.cpp b/logger.cpp index 8d0f25d..3ac62f0 100644 --- a/logger.cpp +++ b/logger.cpp @@ -94,6 +94,8 @@ void Logger::reOpen() // I want all messages logged during app startup to also show on stdout/err, otherwise failure can look so silent. So, call this when the app started. void Logger::noLongerLogToStd() { + if (!logPath.empty()) + logf(LOG_INFO, "Switching logging from stdout to logfile '%s'", logPath.c_str()); alsoLogToStd = false; }