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

Ensure correct status code is returned in logs #2227

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

PooyaRaki
Copy link
Contributor

@PooyaRaki PooyaRaki commented Dec 31, 2024

Summary

This PR ensures that the correct status codes are returned and logged. Previously, an incorrect status code might have been recorded in the logs, which could lead to confusion or misinterpretation during debugging or monitoring.
This change improves the reliability and accuracy of application logs, aiding in better diagnostics and monitoring.

#1924

Changes

  • Updated the logic to accurately capture and log the status codes returned by the application.
  • Added tests to verify that the correct status codes are now logged in various scenarios

@PooyaRaki PooyaRaki marked this pull request as ready for review January 3, 2025 07:45
@PooyaRaki PooyaRaki requested a review from a team as a code owner January 3, 2025 07:45
@PooyaRaki PooyaRaki changed the title ensure correct status code is returned in logs Ensure correct status code is returned in logs Jan 3, 2025
@PooyaRaki PooyaRaki merged commit ef04ff1 into main Jan 3, 2025
20 checks passed
@PooyaRaki PooyaRaki deleted the logErrorCode branch January 3, 2025 15:32
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