cron logging: always print messages of level >= LOG_WARNING

This commit is contained in:
Daniel Reichelt
2016-02-16 17:58:10 +01:00
parent ca80b6372b
commit 71248f0adf

View File

@@ -104,7 +104,6 @@ class FroxlorLogger {
return; return;
} }
if (self::$crondebug_flag) {
switch($type) { switch($type) {
case LOG_INFO: case LOG_INFO:
$_type = 'information'; $_type = 'information';
@@ -128,6 +127,7 @@ class FroxlorLogger {
$_type = 'unknown'; $_type = 'unknown';
break; break;
} }
if (self::$crondebug_flag || $type <= LOG_WARNING) { # more severe levels have smaller numbers
echo "[".$_type."] ".$text.PHP_EOL; echo "[".$_type."] ".$text.PHP_EOL;
} }