mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 12:25:16 -04:00
Merge pull request #52782 from nextcloud/feat/log-client-side-req-id
This commit is contained in:
commit
0f03a892b9
1 changed files with 4 additions and 0 deletions
|
|
@ -59,6 +59,10 @@ abstract class LogDetails {
|
|||
'userAgent',
|
||||
'version'
|
||||
);
|
||||
$clientReqId = $request->getHeader('X-Request-Id');
|
||||
if ($clientReqId !== '') {
|
||||
$entry['clientReqId'] = $clientReqId;
|
||||
}
|
||||
|
||||
if (is_array($message)) {
|
||||
// Exception messages are extracted and the exception is put into a separate field
|
||||
|
|
|
|||
Loading…
Reference in a new issue