You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, currently there are several issues with error logging:
NotFound error is reported twice as a NotFound error and a generic Error
NotFound erros are level error and not info
It's not possible to override pino options without passing destination which removes formatting, so the only way to customize logging is just pass in a whole pino instance.
Describe the Bug
Hi there, currently there are several issues with error logging:
NotFound
error and a genericError
error
and notinfo
pino
options without passingdestination
which removes formatting, so the only way to customize logging is just pass in a wholepino
instance.Link to the code that reproduces this issue
https://github.com/payloadcms/payload/blob/main/packages/payload/src/utilities/logger.ts#L38
AFAIK The only way to customize/suppress 404s and AuthErrors at the moment:
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: