disabling permanent error_log in favor of $debug attribute

This commit is contained in:
Ralf Becker 2018-09-12 14:52:34 +02:00
parent 9368992032
commit a646bc6a61

View File

@ -472,7 +472,7 @@ class Asyncservice
{ {
if ($job['data']['keep_time'] <= time()) if ($job['data']['keep_time'] <= time())
{ {
error_log(__METHOD__."() finally deleting job ".array2string($job)); if ($this->debug) error_log(__METHOD__."() finally deleting job ".array2string($job));
$this->delete($job['id']); $this->delete($job['id']);
} }
// fix somehow created async-job with a next time before the keep time, eg. not updated alarm trigger time in the past // fix somehow created async-job with a next time before the keep time, eg. not updated alarm trigger time in the past