Merge pull request #298 from nachtgeist/logging

Logging
This commit is contained in:
Florian Aders
2016-02-19 20:46:22 +01:00
2 changed files with 9 additions and 8 deletions

View File

@@ -104,13 +104,14 @@ class FroxlorLogger {
return;
}
if (self::$crondebug_flag) {
if (self::$crondebug_flag
|| ($action == CRON_ACTION && $type <= LOG_WARNING)) {
echo "[".getLogLevelDesc($type)."] ".$text.PHP_EOL;
}
if (Settings::Get('logger.log_cron') == '0'
&& $action == CRON_ACTION
&& $type > LOG_WARNING // warnings, errors and critical mesages WILL be logged
&& $action == CRON_ACTION
&& $type > LOG_WARNING // warnings, errors and critical mesages WILL be logged
) {
return;
}