From 96491ed272e55f9f9356ec51d78981d6f49bde2c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 9 Dec 2008 14:02:10 +0000 Subject: [PATCH] more debug for calendar notification --- calendar/inc/class.calendar_boupdate.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index e7c77b31f1..2231733fdb 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -513,6 +513,7 @@ class calendar_boupdate extends calendar_bo } foreach($to_notify as $userid => $statusid) { + if ($this->debug > 0) error_log(__METHOD__." trying to notify $userid, with $statusid"); if (!is_numeric($userid)) { $res_info = $this->resource_info($userid); @@ -595,11 +596,11 @@ class calendar_boupdate extends calendar_bo $notification->send(); } catch (Exception $exception) { - error_log('error while notifying user '.$userid.':'.$exception->getMessage()); + error_log(__METHOD__.' error while notifying user '.$userid.':'.$exception->getMessage()); continue; } } else { - error_log('calendar: cannot send any notifications because notifications is not installed'); + error_log(__METHOD__.' cannot send any notifications because notifications is not installed'); } } }