]> git.mxchange.org Git - friendica.git/commitdiff
Add callstack to log messages to better troubleshoot warning messages
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 8 Oct 2023 02:29:06 +0000 (22:29 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 8 Oct 2023 12:37:41 +0000 (08:37 -0400)
src/Core/Logger/Util/Introspection.php

index 0b703da825514b22558910029589f63479eb3721..c154eec9f58729aace72bcd7516e72f82c27f211 100644 (file)
@@ -23,6 +23,7 @@ namespace Friendica\Core\Logger\Util;
 
 use Friendica\App\Request;
 use Friendica\Core\Logger\Capability\IHaveCallIntrospections;
+use Friendica\Core\System;
 
 /**
  * Get Introspection information about the current call
@@ -86,6 +87,7 @@ class Introspection implements IHaveCallIntrospections
                        'line'       => $trace[$i - 1]['line'] ?? null,
                        'function'   => $trace[$i]['function'] ?? null,
                        'request-id' => $this->requestId,
+                       'stack'      => System::callstack(10, 4),
                ];
        }