change mode of opening log files to append instead of overwrite
This commit is contained in:
parent
4219bcd1ca
commit
1361b8952f
|
@ -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) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue