From 1361b8952f88896fbfb4a6b4df38ace51ed14b30 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 14 Jun 2017 10:15:08 -0400 Subject: [PATCH] change mode of opening log files to append instead of overwrite --- src/zm_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index 013807df6..6cfe00163 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -422,7 +422,7 @@ void Logger::logFile( const std::string &logFile ) { } void Logger::openFile() { - if ( mLogFile.size() && (mLogFileFP = fopen( mLogFile.c_str() ,"w" )) == (FILE *)NULL ) { + if ( mLogFile.size() && (mLogFileFP = fopen( mLogFile.c_str() ,"a" )) == (FILE *)NULL ) { mFileLevel = NOLOG; Fatal( "fopen() for %s, error = %s", mLogFile.c_str(), strerror(errno) ); }