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

Small prod tweaks - Hide logging for 404 add in declined #1742

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

seeker25
Copy link
Collaborator

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).

@seeker25 seeker25 changed the title Small prod tweaks -Hide logging for 404 add in declined Small prod tweaks - Hide logging for 404 add in declined Sep 12, 2024
@seeker25 seeker25 merged commit ab453c9 into bcgov:main Sep 12, 2024
8 checks passed
@@ -73,8 +73,9 @@ def post(endpoint, token, auth_header_type: AuthHeaderType, # pylint: disable=t
current_app.logger.error(exc)
raise ServiceUnavailableException(exc) from exc
except HTTPError as exc:
current_app.logger.error(
f"HTTPError on POST with status code {response.status_code if response else ''}")
if not response or response.status_code != 404:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should have been on the GET not the POST

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