]> git.mxchange.org Git - friendica.git/commitdiff
Add line number to output in System::callstack
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Jan 2023 15:22:19 +0000 (10:22 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Jan 2023 21:06:22 +0000 (16:06 -0500)
src/Core/System.php

index f94004a880ab10a047935c653432cb887cc25aab..3feaac31dc7e37cf519234832be3c01cc1792e69 100644 (file)
@@ -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;
                        }