If you add an obfuscate option like obfuscate: ['body.password'] and attempt to access req.body.password after the req has been logged (immediate: true for example), you'll receive [HIDDEN] as the value for req.body.password. The logger should deep copy the req/res data (body, headers), rather than assigning, to prevent mutation.
If you add an obfuscate option like
obfuscate: ['body.password']
and attempt to accessreq.body.password
after the req has been logged (immediate: true
for example), you'll receive[HIDDEN]
as the value forreq.body.password
. The logger should deep copy the req/res data (body, headers), rather than assigning, to prevent mutation.