-
Notifications
You must be signed in to change notification settings - Fork 27
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
Making services more debuggable #1690
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1690 +/- ##
======================================
Coverage 73.6% 73.7%
======================================
Files 278 278
Lines 10919 10923 +4
Branches 1179 1179
======================================
+ Hits 8047 8051 +4
- Misses 2529 2530 +1
+ Partials 343 342 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
except aiodocker.exceptions.DockerError as e: | ||
log_type, parsed_line = await parse_line( | ||
f"Could not recover logs because: {str(e)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wondering, import aiodocker vs from aiodocker.exceptions import DockerError ? what are the implications? is there any typical python directive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no reason, but this way you know exactly from which module the error comes. It's more readable because sometimes you may have a GenericError
and with this form except module.submodule.GenericError...
is easier to read.
What do these changes do?
Will help debugging #1479
Related issue number
How to test
Checklist
make openapi-specs
,git commit ...
and thenmake version-*
)