-
Notifications
You must be signed in to change notification settings - Fork 2
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
Read over Python 3.12's Logging Guide and see if there's anything else we could be leveraging/configuring to improve how logging is structured throughout our applications #1272
Conversation
Looks like this needs another merge from |
D'oh, style check fail; also PR still needs a proper description! 🙂 |
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.
Awesome @terrazoon, thank you for this cleanup! This will help improve logging going forward, and nice catch with several of the older debug statements or other things that should not be logged as well!
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.
See my notes.
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.
LGTM
Description
This ticket consisted of reading the best practices and then changing our code to add 'excInfo=True' to most of our calls to current_app.logger.error(). By default, error() (unlike exception()) doesn't print a stack trace, but usually we want it to. Then we needed to remove some of the raise Exception as e statements where we passed e as a parameter to the logger (since we would be getting the complete stack trace).
Security Considerations
N/A