-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add exit_code to the messages doc and some logging improvements #314
Conversation
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.
Thanks for the PR!
I left some notes to address.
Comments with the FYI note are not required to be fixed, but are nice to haves if you'd like to make those changes so I won't need to fix them in #298.
Could you also provide a bit more specific PR title? After all, the PR titles will be used for auto-generating the Release Notes for the upcoming v2.1.0
. Sounds like we're mixing both enhancement + fix in this PR.
@@ -126,13 +126,10 @@ def Install_Plugins(): | |||
) | |||
|
|||
except FileNotFoundError as e: | |||
logger.warning( | |||
"No plugin file was found at path: [{}]".format( |
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.
In this case, No plugin was found at path:
was more specific and helpful, compared to the more universal Required file was not found. To fix this please add the following file:
.
If the plugin configuration is missing, it is worth warning that explicitly and providing recommendations what is the plugin configuration file and ideally its format.
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.
@PhillypHenning that's the only missing one.
I think we should try improving the error message clarity by being more specific in this case with the plugin config.
scripts/plugins/install_plugins.py
Outdated
) | ||
) | ||
msg, _ = Get_Doc("missing_optional_file") | ||
logger.warning("{} [{}]".format(msg, plugin_configuration_path)) |
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 also see we moved the warning
message to the documentation.json
.
Is the idea to move all the warnings
to that file in the future or do we plan to do it only for errors
? How about info
?
@PhillypHenning what's the convention for this?
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.
Looks good, thanks for the changes 👍
Description
Adds file checking and some overall logging improvements.
Fixes #310
Closes #311
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Logs
Checklist: