-
Notifications
You must be signed in to change notification settings - Fork 2
v2.1.x Chore - Refactor exception logging #386
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
Comments
Additional OccurrencesLines 399 to 407 in 19d38db
multicast/tests/run_selective.py Lines 66 to 80 in 19d38db
Lines 277 to 291 in 19d38db
Lines 150 to 200 in 19d38db
already including: Lines 181 to 185 in 19d38db
Search of all uses of
|
Description
This issue tracks the refactoring of redundant exception logging instances throughout the codebase.
Problem
Several places in the codebase use redundant exception objects in
logging.exception()
calls. Sincelogging.exception()
already automatically includes the exception traceback and message, passing the exception string explicitly is redundant.Example:
Recommended Fix
Replace redundant exception logging with a descriptive message:
Or, if no additional context is needed:
Files to Refactor
tests/__init__.py
: Line ~197Related
The text was updated successfully, but these errors were encountered: