Only output to stdout if mTerminalLevel is something. zms for example SHOULD not output to stdout, ever except maybe when running from terminal to debug
This commit is contained in:
parent
28700fd56b
commit
ebf1b7cbdc
|
@ -524,8 +524,8 @@ void Logger::logPrint(bool hex, const char * const filepath, const int line, con
|
|||
if (mLogFileFP) {
|
||||
fputs(logString, mLogFileFP);
|
||||
if (mFlush) fflush(mLogFileFP);
|
||||
} else {
|
||||
puts("Logging to file, but failed to open it\n");
|
||||
} else if (mTerminalLevel != NOLOG) {
|
||||
puts("Logging to file but failed to open it\n");
|
||||
}
|
||||
} // end if level <= mFileLevel
|
||||
|
||||
|
|
Loading…
Reference in New Issue