✨ extra logging parameter to add plugin identifier
Will allow to identify logged exceptions originating from calling plugins, but also log plugin identifiers directly in the log message if so desired.
This commit is contained in:
1 parent
34c30ed73f
commit
b353c4eee2
20 files changed
+177
-95
No files matched your search
@@ -119,7 +119,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
try:
|
||||
hook_checks = hook()
|
||||
except:
|
||||
self._logger.exception("Error while retrieving update information from plugin {name}".format(**locals()))
|
||||
self._logger.exception("Error while retrieving update information "
|
||||
"from plugin {name}".format(**locals()),
|
||||
extra=dict(plugin=name))
|
||||
else:
|
||||
for key, default_config in hook_checks.items():
|
||||
if key in effective_configs or key == "octoprint":
|
||||
|
||||
Reference in new issue
Block a user