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

[FIX] monitoring_log_requests: response_status_code #468

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from

Conversation

gurneyalex
Copy link
Member

the response status code would not be properly logged -> fix the code

the response status code would not be properly logged -> fix the code
@gurneyalex gurneyalex force-pushed the 16.0-fix_monitoring_log_requests branch from dc94374 to 30b7335 Compare August 27, 2024 10:09
info["status_code"] = response.status_code
if isinstance(response, Response) and hasattr(response, "status_code"):
info["response_status_code"] = response.status_code
else:
Copy link

@Ricardoalso Ricardoalso Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this not be misleading ? Or are we always sure that an inexistent status_code represents a 200 status code meaning that the request was successful 🤔
It is basically like setting "response_status_code": 200 in line 63

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.

4 participants