Sfoglia il codice sorgente

ZF-7940: zend monitor integration in errorAction

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19539 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 anni fa
parent
commit
d4333ea81c
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      library/Zend/Tool/Project/Context/Zf/ControllerFile.php

+ 5 - 0
library/Zend/Tool/Project/Context/Zf/ControllerFile.php

@@ -149,6 +149,11 @@ switch (\$errors->type) {
         break;
 }
 
+// Log to Zend Monitor, if logger available
+if (\$monitor = \$this->getMonitorLog()) {
+    \$monitor->crit(\$this->view->message, \$errors->exception);
+}
+
 // conditionally display exceptions
 if (\$this->getInvokeArg('displayExceptions') == true) {
     \$this->view->exception = \$errors->exception;