cron/logging: add choice to always log cronjobs

This commit is contained in:
Daniel Reichelt
2016-02-16 17:33:10 +01:00
committed by Daniel Reichelt
parent e306425428
commit ca80b6372b
7 changed files with 31 additions and 12 deletions

View File

@@ -191,13 +191,11 @@ class FroxlorLogger {
$_cronlog = (int)$_cronlog;
if ($_cronlog != 0
&& $_cronlog != 1
) {
if ($_cronlog < 0 || $_cronlog > 2) {
$_cronlog = 0;
}
Settings::Set('logger.log_cron', $_cronlog);
return true;
return $_cronlog;
}
/**