I'm using fastify and pino-pretty
pino.info('Error doing that', Error)
<- prints {} for Error
pino.info(Error, 'Error doing that')
<- prints the error in full
All my other logging, uses the more natural message,data
format
Is there a way to switch the way pino processes the params to allow for objects/errors in the second param?