-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Update logging messages(#282) #303
Conversation
Nice one! I'm guessing the decrease in coverage is related to adding extra logging in an uncovered area, so that's fine. I'll take a look through later just to be sure I agree with the levels. |
I added a logging.error message in the welcome message but it seems that the ones not being logged are in loader (even though previous builds show that this one wasn't tested?) Let me know if this is the issue. |
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.
These changes are great. Only one level I disagree with here.
opsdroid/__main__.py
Outdated
@@ -104,7 +104,8 @@ def welcome_message(config): | |||
"releases") | |||
_LOGGER.info("=" * 40) | |||
except KeyError: | |||
pass | |||
_LOGGER.error("'welcome-message: true/false' is missing in " |
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.
I would make this a warning as it still works without it.
I've made a test to try and bump the coverage up again but it kept failing. What I tried:
The else statement doesn't run because of the for loop on line 223 of opsdroid.loader causes the test to get a Will this cause an issue in the future and should we change the _load_modules function if into a try? |
Yeah don't worry for now. I'm happy to merge it even with the slight drop. Perhaps investigate this further in a separate issue. |
Description
Added some logging separation throughout the code, replaced concatenation with string formatting using %s as discussed in gitter.
Please let me know if things are okay or if I should change something around.
Fixes: #282
Status
READY |
UNDER DEVELOPMENT|ON HOLDType of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: