This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ protected function _initConfig()
122
122
'datetime ' => 'timestamp ' ,
123
123
'module ' => 'module ' );
124
124
$ writerDb = new Zend_Log_Writer_Db ($ db , 'errorlog ' , $ columnMapping );
125
- if ($ config ->environment == 'production ' )
125
+ if ($ configGlobal ->environment == 'production ' )
126
126
{
127
127
$ formatter = new Zend_Log_Formatter_Simple ();
128
128
Zend_Loader_Autoloader::getInstance ()->suppressNotFoundWarnings (false );
@@ -132,11 +132,6 @@ protected function _initConfig()
132
132
'writerParams ' => array (
133
133
'stream ' => './log/prod.log ' ),
134
134
'filterName ' => 'Priority ' ,
135
- 'filterParams ' => array (
136
- 'priority ' => Zend_Log::INFO )),
137
- array (
138
- 'writerName ' => 'Firebug ' ,
139
- 'filterName ' => 'Priority ' ,
140
135
'filterParams ' => array (
141
136
'priority ' => Zend_Log::INFO ))));
142
137
}
Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ public function fatalEror($logger, $mailer)
48
48
case 'production ' :
49
49
$ message .= "It seems you have just encountered an unknown issue. " ;
50
50
$ message .= "Our team has been notified and will deal with the problem as soon as possible. " ;
51
- header ('content-type: text/plain ' );
52
- ob_clean ();
51
+
53
52
if ($ e ['type ' ] == E_NOTICE )
54
53
{
55
54
$ e ['typeText ' ] = 'E_NOTICE ' ;
@@ -78,6 +77,11 @@ public function fatalEror($logger, $mailer)
78
77
{
79
78
return ;
80
79
}
80
+ header ('content-type: text/plain ' );
81
+ if (count (ob_list_handlers ()) > 0 )
82
+ {
83
+ ob_clean ();
84
+ }
81
85
echo $ message ;
82
86
$ this ->_mailer = $ mailer ;
83
87
$ this ->_environment = $ environment ;
You can’t perform that action at this time.
0 commit comments