diff options
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 8c537c3f..4c3a8b2a 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -33,6 +33,9 @@ void Debug::log(LogLevel level, const char* fmt, ...) { if (disableLogs && *disableLogs) return; + if (level == TRACE && !trace) + return; + // log to a file std::ofstream ofs; ofs.open(logFile, std::ios::out | std::ios::app); @@ -43,6 +46,7 @@ void Debug::log(LogLevel level, const char* fmt, ...) { case ERR: ofs << "[ERR] "; break; case CRIT: ofs << "[CRITICAL] "; break; case INFO: ofs << "[INFO] "; break; + case TRACE: ofs << "[TRACE] "; break; default: break; } |
