New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade logger (PL-000) #692
base: master
Are you sure you want to change the base?
Conversation
62b51f5
to
9259de1
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
I think https://github.com/pinojs/pino-http/blob/00b097bb54d87ec6ba27d92b4bd1612213e75def/logger.js#L133 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some changes might need to get made to the way promises are displayed. The only method with vars
was actually pretty good:
https://github.com/voiceflow/logger/blob/3f4220c97ffa69351a3058d2000fa55547d90a91/lib/logger.ts#L78-L89
I played around a lot with the logger, and I think this is the minimal risk one to solve the memory issue. This doesn't change anything with `backend-utils` and ensures the same logging behavior with `vars`: https://github.com/voiceflow/logger/blob/3f4220c97ffa69351a3058d2000fa55547d90a91/lib/logger.ts#L70-L89 added pino as a dev dependency PURELY for types, because `@voiceflow/backend-utils` uses a different version of pino and pino http. The longer term update is over here: #692 (review) Co-authored-by: Tyler Han <tylerhan97@gmail.com>
I played around a lot with the logger, and I think this is the minimal risk one to solve the memory issue. This doesn't change anything with `backend-utils` and ensures the same logging behavior with `vars`: https://github.com/voiceflow/logger/blob/3f4220c97ffa69351a3058d2000fa55547d90a91/lib/logger.ts#L70-L89 added pino as a dev dependency PURELY for types, because `@voiceflow/backend-utils` uses a different version of pino and pino http. The longer term update is over here: #692 (review) Co-authored-by: Tyler Han <tylerhan97@gmail.com>
Upgrade
@voiceflow/logger
,@voiceflow/backend-utils