diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-10-02 13:20:44 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-10-02 13:20:44 -0700 |
commit | 7236208655c3a4c9fba59b36efaeb8f6175a0819 (patch) | |
tree | e1ff2d667ac3e8a3c3b78b8368cb9a7e3439e86f | |
parent | ace6949664c99a291823b960cb6166bca08d522f (diff) |
Log the stack trace when non-admins get the error.
-rw-r--r-- | modules/gallery/views/kohana_error_page.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gallery/views/kohana_error_page.php b/modules/gallery/views/kohana_error_page.php index 9361514d..314a9923 100644 --- a/modules/gallery/views/kohana_error_page.php +++ b/modules/gallery/views/kohana_error_page.php @@ -117,6 +117,11 @@ <? endif ?> </div> </div> + <? else: ?> + <? $trace = $PHP_ERROR ? array_slice(debug_backtrace(), 1) : $exception->getTraceAsString(); ?> + <? if (!empty($trace)): ?> + <? Kohana::Log("error", print_r($trace, 1)); ?> + <? endif ?> <? endif ?> </body> </html> |