cron logging: always print messages of level >= LOG_WARNING
This commit is contained in:
@@ -104,7 +104,6 @@ class FroxlorLogger {
|
||||
return;
|
||||
}
|
||||
|
||||
if (self::$crondebug_flag) {
|
||||
switch($type) {
|
||||
case LOG_INFO:
|
||||
$_type = 'information';
|
||||
@@ -128,6 +127,7 @@ class FroxlorLogger {
|
||||
$_type = 'unknown';
|
||||
break;
|
||||
}
|
||||
if (self::$crondebug_flag || $type <= LOG_WARNING) { # more severe levels have smaller numbers
|
||||
echo "[".$_type."] ".$text.PHP_EOL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user