mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #6247: Logger and error handler are now using slightly less memory
This commit is contained in:
@ -138,7 +138,7 @@ class Logger extends Component
|
||||
$traces = [];
|
||||
if ($this->traceLevel > 0) {
|
||||
$count = 0;
|
||||
$ts = debug_backtrace();
|
||||
$ts = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
array_pop($ts); // remove the last trace since it would be the entry script, not very useful
|
||||
foreach ($ts as $trace) {
|
||||
if (isset($trace['file'], $trace['line']) && strpos($trace['file'], YII2_PATH) !== 0) {
|
||||
|
Reference in New Issue
Block a user