Merge pull request #52782 from nextcloud/feat/log-client-side-req-id

This commit is contained in:
Kate 2025-05-14 10:07:36 +02:00 committed by GitHub
commit 0f03a892b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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