diff options
Diffstat (limited to 'src/utils/logger.cpp')
-rw-r--r-- | src/utils/logger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/logger.cpp b/src/utils/logger.cpp index 6ad008c9..2053c9a8 100644 --- a/src/utils/logger.cpp +++ b/src/utils/logger.cpp @@ -150,7 +150,8 @@ void Logger::setLogFile(const std::string &logFile, bool append) // Open the file for output // and remove the former file contents depending on the append flag. mLogFile.open(logFile.c_str(), - append ? std::ios::ate : std::ios::trunc); + append ? std::ios::app : std::ios::trunc); + mFilename = logFile; mLastCallDate = getCurrentDate(); |