From: Hypolite Petovan Date: Mon, 9 Jan 2023 15:22:19 +0000 (-0500) Subject: Add line number to output in System::callstack X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4d5d8e5b64b9511f756c1c9079c723671986e2ef;p=friendica.git Add line number to output in System::callstack --- diff --git a/src/Core/System.php b/src/Core/System.php index f94004a880..3feaac31dc 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -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; }