diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 08:47:44 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-29 08:47:44 -0700 |
commit | acce8cbafd1987c72b8e3c7be54e91473ab2a525 (patch) | |
tree | 955bbcce2de9ec1c3264ab1902c87a13923f0bb2 | |
parent | cb2171d0825251d619b53f6f80d217326fb6bab5 (diff) |
Log the actual exception details, before swallowing the exception.
-rw-r--r-- | modules/notification/helpers/notification_event.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php index 8fbeda92..c50b04c4 100644 --- a/modules/notification/helpers/notification_event.php +++ b/modules/notification/helpers/notification_event.php @@ -26,6 +26,7 @@ class notification_event_Core { notification::send_item_updated($new); } catch (Exception $e) { Kohana::log("error", "@todo notification_event::item_updated() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -34,6 +35,7 @@ class notification_event_Core { notification::send_item_add($item); } catch (Exception $e) { Kohana::log("error", "@todo notification_event::item_created() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -46,6 +48,7 @@ class notification_event_Core { } } catch (Exception $e) { Kohana::log("error", "@todo notification_event::item_deleted() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -56,6 +59,7 @@ class notification_event_Core { } } catch (Exception $e) { Kohana::log("error", "@todo notification_event::comment_created() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -66,6 +70,7 @@ class notification_event_Core { } } catch (Exception $e) { Kohana::log("error", "@todo notification_event::comment_updated() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -76,6 +81,7 @@ class notification_event_Core { ->delete_all(); } catch (Exception $e) { Kohana::log("error", "@todo notification_event::user_before_delete() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } @@ -84,6 +90,7 @@ class notification_event_Core { notification::send_pending_notifications(); } catch (Exception $e) { Kohana::log("error", "@todo notification_event::batch_complete() failed"); + Kohana::Log("error", $e->getMessage() . "\n" . $e->getTraceAsString()); } } |