Add line number to output in System::callstack
This commit is contained in:
parent
670b518875
commit
4d5d8e5b64
|
@ -253,12 +253,12 @@ class System
|
|||
$func['database'] = in_array($func['class'], ['Friendica\Database\DBA', 'Friendica\Database\Database']);
|
||||
if (!$previous['database'] || !$func['database']) {
|
||||
$classparts = explode("\\", $func['class']);
|
||||
$callstack[] = array_pop($classparts).'::'.$func['function'];
|
||||
$callstack[] = array_pop($classparts).'::'.$func['function'] . '(' . $func['line'] . ')';
|
||||
$previous = $func;
|
||||
}
|
||||
} elseif (!in_array($func['function'], $ignore)) {
|
||||
$func['database'] = ($func['function'] == 'q');
|
||||
$callstack[] = $func['function'];
|
||||
$callstack[] = $func['function'] . '(' . $func['line'] . ')';
|
||||
$func['class'] = '';
|
||||
$previous = $func;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue