"commented permanent error_log in async_notifications, as it creates mail to root when async service is run via cron"

This commit is contained in:
Ralf Becker 2009-11-19 11:38:37 +00:00
parent 4515b1fec0
commit 6eab77b15f

View File

@ -1180,7 +1180,7 @@ class infolog_bo
{
return;
}
error_log("boinfolog::async_notification() users with open entries: ".implode(', ',$users));
//error_log(__METHOD__."() users with open entries: ".implode(', ',$users));
$save_account_id = $GLOBALS['egw_info']['user']['account_id'];
$save_prefs = $GLOBALS['egw_info']['user']['preferences'];
@ -1207,7 +1207,7 @@ class infolog_bo
if (!($pref_value = $GLOBALS['egw_info']['user']['preferences']['infolog'][$pref])) continue;
$filter .= date('Y-m-d',time()+24*60*60*(int)$pref_value);
error_log("boinfolog::async_notification() checking with filter '$filter' ($pref_value) for user $user ($email)");
//error_log(__METHOD__."() checking with filter '$filter' ($pref_value) for user $user ($email)");
$params = array('filter' => $filter);
foreach($this->so->search($params) as $info)
@ -1239,7 +1239,7 @@ class infolog_bo
$this->tracking->datetime($info['info_startdate']-$this->tz_offset_s,null));
break;
}
error_log("notifiying $user($email) about $info[info_subject]: $info[message]");
//error_log("notifiying $user($email) about $info[info_subject]: $info[message]");
$this->tracking->send_notification($info,null,$email,$user,$pref);
$notified_info_ids[] = $info['info_id'];