summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-10 21:20:18 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-10 21:20:18 -0800
commit3d1f166fe5747bc3d11fb6cecf2a11b143efeec4 (patch)
treed13741744d66ebb30a2408aecf380adda1a5baf1 /modules/gallery/helpers
parent16bed1ffd54000922f806af669f618970600420f (diff)
Log the entire stack trace when we catch an exception.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/identity.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/helpers/identity.php b/modules/gallery/helpers/identity.php
index 72e3312d..83ba9e1e 100644
--- a/modules/gallery/helpers/identity.php
+++ b/modules/gallery/helpers/identity.php
@@ -82,7 +82,8 @@ class identity_Core {
}
} catch (Exception $e) {
// Log it, so we at least have so notification that we swallowed the exception.
- Kohana::log("error", "Load_user Exception: " . $e->__toString());
+ Kohana::log("error", "Load_user Exception: " .
+ $e->getMessage() . "\n" . $e->getTraceAsString());
try {
Session::instance()->destroy();
} catch (Exception $e) {