Skip to content

WIP:Initial version of structured logging for API server #518

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

Merged
merged 2 commits into from
Dec 28, 2022

Conversation

c-simpson
Copy link
Collaborator

Setup is in config.py, then available everywhere. Logs to console or stdout as appropriate.

Changed all print statements and current_app.logger statements to use structlog.

We need to make sure all statements use '%'-type interpolation.

We should review for consistency.

@c-simpson c-simpson requested a review from sposerina December 5, 2022 02:43
@c-simpson
Copy link
Collaborator Author

Closes #494

@c-simpson c-simpson changed the title WIP:Initial version of structured logging for API srver WIP:Initial version of structured logging for API server Dec 6, 2022
@osabahat
Copy link
Collaborator

@c-simpson I was able to test it locally and see the logs formatted as expected but saw this is still marked WIP. Not sure if there were any pending actions before it's ready for review.

@osabahat osabahat mentioned this pull request Dec 27, 2022
@c-simpson c-simpson marked this pull request as ready for review December 28, 2022 02:24
@c-simpson
Copy link
Collaborator Author

Steve reviewed.

@c-simpson c-simpson merged commit 8cdb867 into master Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants