Merge pull request #13155 from overleaf/jk-fix-logger-arguments

[web] Fix argument order to `logger.error`

GitOrigin-RevId: 863cba7512115368bae22bfb2d55149e759c355d
This commit is contained in:
Alf Eaton 2023-05-24 11:02:58 +01:00 committed by Copybot
parent 142cfb51d9
commit 064f030abf

View file

@ -29,13 +29,16 @@ function log(req, data, samlAssertion) {
if (data.error.tryAgain) {
errSerialized.tryAgain = data.error.tryAgain
}
logger.error('SAML Error Encountered', {
providerId,
sessionId,
userId,
path,
query,
})
logger.error(
{
providerId,
sessionId,
userId,
path,
query,
},
'SAML Error Encountered'
)
data.error = errSerialized
}