-
Notifications
You must be signed in to change notification settings - Fork 154
improv(logger): Format the stack trace as an array of strings in dev mode #3852
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
base: main
Are you sure you want to change the base?
improv(logger): Format the stack trace as an array of strings in dev mode #3852
Conversation
When POWERTOOLS_DEV is enabled, the stack trace will be split on newline characters to create an array. This improves readability compared to a single long string
c17e26d
to
dc238e1
Compare
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.
Thanks for the PR - I'll merge it after tomorrow's release so it's included in the following release.
Other than that's it's approved so from your side you can consider it done.
|
Summary
When POWERTOOLS_DEV is enabled, the stack trace will be split on newline characters to create an array. This improves readability compared to a single long string
Changes
formatError
method of the default Powertools formatter. When POWERTOOLS_DEV is enabled, thestack
property will be split into an arrayIssue number: #1362
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.