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