mirror of
https://github.com/friendica/friendica
synced 2024-11-18 10:23:41 +00:00
Don't show multiple calls from the "dba" class to show the essential parts of the callstack
This commit is contained in:
parent
60e8ada6d6
commit
ce7f451196
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ class System extends BaseObject
|
|||
|
||||
while ($func = array_pop($trace)) {
|
||||
if (!empty($func['class'])) {
|
||||
// Don't show multiple calls from the same function (mostly used for "dba" class)
|
||||
if (($previous['class'] != $func['class']) && ($previous['function'] != 'q')) {
|
||||
// Don't show multiple calls from the "dba" class to show the essential parts of the callstack
|
||||
if ((($previous['class'] != $func['class']) || ($func['class'] != 'dba')) && ($previous['function'] != 'q')) {
|
||||
$classparts = explode("\\", $func['class']);
|
||||
$callstack[] = array_pop($classparts).'::'.$func['function'];
|
||||
$previous = $func;
|
||||
|
|
Loading…
Reference in a new issue