[icinga-checkins] icinga.org: icingaweb2/master: ErrorController: Log the full stacktrace in case of unhandled exceptions

git at icinga.org git at icinga.org
Thu Oct 13 12:06:41 CEST 2016


Module: icingaweb2
Branch: master
Commit: 0fd5e8e4e892adfc2ebb73f5d5636dcb38f53ee4
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=0fd5e8e4e892adfc2ebb73f5d5636dcb38f53ee4

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Thu Oct 13 12:06:23 2016 +0200

ErrorController: Log the full stacktrace in case of unhandled exceptions


---

 application/controllers/ErrorController.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/ErrorController.php b/application/controllers/ErrorController.php
index 101d485..b001038 100644
--- a/application/controllers/ErrorController.php
+++ b/application/controllers/ErrorController.php
@@ -81,7 +81,7 @@ class ErrorController extends ActionController
                         break;
                     default:
                         $this->getResponse()->setHttpResponseCode(500);
-                        Logger::error($exception);
+                        Logger::error("%s\n%s", $exception, $exception->getTraceAsString());
                         break;
                 }
                 $this->view->message = $exception->getMessage();



More information about the icinga-checkins mailing list