Add callstack to log messages to better troubleshoot warning messages
This commit is contained in:
parent
c31c264b0b
commit
1506068f7c
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ namespace Friendica\Core\Logger\Util;
|
||||||
|
|
||||||
use Friendica\App\Request;
|
use Friendica\App\Request;
|
||||||
use Friendica\Core\Logger\Capability\IHaveCallIntrospections;
|
use Friendica\Core\Logger\Capability\IHaveCallIntrospections;
|
||||||
|
use Friendica\Core\System;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Introspection information about the current call
|
* Get Introspection information about the current call
|
||||||
|
@ -86,6 +87,7 @@ class Introspection implements IHaveCallIntrospections
|
||||||
'line' => $trace[$i - 1]['line'] ?? null,
|
'line' => $trace[$i - 1]['line'] ?? null,
|
||||||
'function' => $trace[$i]['function'] ?? null,
|
'function' => $trace[$i]['function'] ?? null,
|
||||||
'request-id' => $this->requestId,
|
'request-id' => $this->requestId,
|
||||||
|
'stack' => System::callstack(10, 4),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue