don't require logging if log file is not set

This commit is contained in:
john30
2020-04-11 13:26:10 +02:00
parent dae039e563
commit a46292468a
+3
View File
@@ -175,6 +175,9 @@ void closeLogFile() {
}
bool needsLog(const LogFacility facility, const LogLevel level) {
if (s_logFile == nullptr && !s_useSyslog) {
return false;
}
return s_facilityLogLevel[facility] >= level;
}