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:
Isaac Connor 2021-03-16 13:26:06 -04:00
parent 28700fd56b
commit ebf1b7cbdc
1 changed files with 2 additions and 2 deletions

View File

@ -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