From 98a5375a52bcf802cd8de368dbe62b5488386abe Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Sat, 5 Jun 2021 12:22:56 +0200 Subject: [PATCH] Log the change from stdout to logfile --- logger.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) 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; } -- libgit2 0.21.4