Skip to content
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

Fixed route logging #29

Merged
merged 1 commit into from
Jun 15, 2021
Merged

Fixed route logging #29

merged 1 commit into from
Jun 15, 2021

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Jun 15, 2021

The route logging middleware did not add the 'request' info object in
json message as configured with the Flask Filter. This was because in
the middleware there is no Flask request context yet.

Therefore moved the log middleware into a before_request method.

Also removed the dev and prod logging configuration that should be part
of the deployment configuration (k8s)

The route logging middleware did not add the 'request' info object in
json message as configured with the Flask Filter. This was because in
the middleware there is no Flask request context yet.

Therefore moved the log middleware into a before_request method.

Also removed the dev and prod logging configuration that should be part
of the deployment configuration (k8s)
@ltshb ltshb requested a review from pakb June 15, 2021 04:51
@ltshb ltshb merged commit 65d1cee into master Jun 15, 2021
@ltshb ltshb deleted the bugfix_logging branch June 16, 2021 10:41
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