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 error logging, address potential db error #3151

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

bolyachevets
Copy link
Collaborator

Issue #:
https://github.com/bcgov/entity/issues/

Description of changes:

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

@bolyachevets bolyachevets marked this pull request as draft November 21, 2024 03:52
@bolyachevets bolyachevets marked this pull request as ready for review November 21, 2024 03:58
@bolyachevets bolyachevets merged commit 11c27c8 into bcgov:main Nov 21, 2024
5 of 6 checks passed
@bolyachevets bolyachevets deleted the auth-queue-errors branch November 21, 2024 03:59
except Exception: # NOQA # pylint: disable=broad-except
logger.error('Error processing event:', exc_info=True)
except Exception as e: # NOQA # pylint: disable=broad-except
logger.error('Error processing event: %', str(e))
Copy link
Collaborator

@seeker25 seeker25 Nov 21, 2024

Choose a reason for hiding this comment

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

not equivalent, doesn't print the stack trace? Only prints the error

EG. before:
ValueError
blah blah line 403
line 340930

now: Will print Error processing event: ValueError

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