[icinga-checkins] icinga.org: icinga-web/master: Additional exception logging (refs #3144)

git at icinga.org git at icinga.org
Tue Oct 9 13:46:33 CEST 2012


Module: icinga-web
Branch: master
Commit: 9dc32a3bdfcc3b1f3310d500fc50e047a5eb1746
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=9dc32a3bdfcc3b1f3310d500fc50e047a5eb1746

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Oct  9 13:46:06 2012 +0200

Additional exception logging (refs #3144)

---

 app/templates/exceptions/web.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/app/templates/exceptions/web.php b/app/templates/exceptions/web.php
index 8496c78..763d009 100755
--- a/app/templates/exceptions/web.php
+++ b/app/templates/exceptions/web.php
@@ -89,6 +89,7 @@ switch($output) {
     default:
         printPlainMessage($e);
         break;
+    
 }
 
 function printPlainMessage(Exception $e) {
@@ -134,4 +135,9 @@ function printPrettyMessage(Exception $e) {
         <?php
     }
 }
+try {
+    AppKitExceptionHandler::logException($e);
+} catch(Exception $e) {
+    
+}
 ?>





More information about the icinga-checkins mailing list