logging: replace hard-coded number by PHP loglevel constant

This commit is contained in:
Daniel Reichelt
2016-02-18 09:18:26 +01:00
parent ef3ab72082
commit ac52802caa

View File

@@ -110,7 +110,7 @@ class FroxlorLogger {
if (Settings::Get('logger.log_cron') == '0' if (Settings::Get('logger.log_cron') == '0'
&& $action == CRON_ACTION && $action == CRON_ACTION
&& $type > 4 // warnings, errors and critical mesages WILL be logged && $type > LOG_WARNING // warnings, errors and critical mesages WILL be logged
) { ) {
return; return;
} }