mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[logger] fix rendering of log context in testLogRecorder (#31522)
- use the processed context - use the 'err' serializer for the 'error' field GitOrigin-RevId: d1215e5af1f32bb1d9b5593e2644bea593daabda
This commit is contained in:
@@ -80,4 +80,9 @@ function getRemoteIp(req) {
|
||||
return null
|
||||
}
|
||||
|
||||
module.exports = { err: errSerializer, req: reqSerializer, res: resSerializer }
|
||||
module.exports = {
|
||||
err: errSerializer,
|
||||
error: errSerializer,
|
||||
req: reqSerializer,
|
||||
res: resSerializer,
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ function testLogRecorder() {
|
||||
if (name in entry) entry[name] = fn(entry[name])
|
||||
}
|
||||
currentTest.consoleErrors = (currentTest.consoleErrors || []).concat(
|
||||
JSON.stringify(info, bunyan.safeCycles())
|
||||
JSON.stringify(entry, bunyan.safeCycles())
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user