This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ private function _logRequest()
404
404
}
405
405
$ entry .= "\n\n" ;
406
406
407
- $ fh = fopen (BASE_PATH . ' /log /trace.log ' , 'a ' );
407
+ $ fh = fopen (LOGS_PATH . ' /trace.log ' , 'a ' );
408
408
fwrite ($ fh , $ entry );
409
409
fclose ($ fh );
410
410
}
Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ protected function _initConfig()
137
137
$ priority = Zend_Log::DEBUG ;
138
138
}
139
139
140
- if (is_writable (BASE_PATH . ' /log ' ))
140
+ if (is_writable (LOGS_PATH ))
141
141
{
142
- $ stream = ' ./log / ' . $ configGlobal ->environment . '.log ' ;
142
+ $ stream = LOGS_PATH . ' / ' . $ configGlobal ->environment . '.log ' ;
143
143
}
144
144
else
145
145
{
Original file line number Diff line number Diff line change 20
20
21
21
define ('CORE_CONFIGS_PATH ' , BASE_PATH . '/core/configs ' );
22
22
define ('LOCAL_CONFIGS_PATH ' , CORE_CONFIGS_PATH );
23
+ define ('LOGS_PATH ' , BASE_PATH . '/log ' );
23
24
24
25
if (file_exists (LOCAL_CONFIGS_PATH . '/core.local.ini ' ))
25
26
{
Original file line number Diff line number Diff line change 128
128
array (
129
129
'writerName ' => 'Stream ' ,
130
130
'writerParams ' => array (
131
- 'stream ' => BASE_PATH . ' /tests/log /testing.log ' ,
131
+ 'stream ' => LOGS_PATH . ' /testing.log ' ,
132
132
),
133
133
'filterName ' => 'Priority ' ,
134
134
'filterParams ' => array (
You can’t perform that action at this time.
0 commit comments