cron logging: always print messages of level >= LOG_WARNING
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user