cron logging: really print messages of level >= LOG_WARNING
also fix mixed indentation
This commit is contained in:
@@ -104,13 +104,14 @@ class FroxlorLogger {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::$crondebug_flag) {
|
if (self::$crondebug_flag
|
||||||
|
|| ($action == CRON_ACTION && $type <= LOG_WARNING)) {
|
||||||
echo "[".getLogLevelDesc($type)."] ".$text.PHP_EOL;
|
echo "[".getLogLevelDesc($type)."] ".$text.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Settings::Get('logger.log_cron') == '0'
|
if (Settings::Get('logger.log_cron') == '0'
|
||||||
&& $action == CRON_ACTION
|
&& $action == CRON_ACTION
|
||||||
&& $type > LOG_WARNING // warnings, errors and critical mesages WILL be logged
|
&& $type > LOG_WARNING // warnings, errors and critical mesages WILL be logged
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user