✨ error tracking: filter all exceptions triggered in plugins
The new extra parameter passed to exception loggers throughout OctoPrint allows even more aggressive filtering to reduce the noise further.
This commit is contained in:
1 parent
b353c4eee2
commit
f1309dad1d
1 file changed
+7
@@ -111,6 +111,7 @@ def _enable_errortracking():
|
||||
|
||||
handled = True
|
||||
logger = event.get("logger", "")
|
||||
plugin = event.get("extra", dict()).get("plugin", None)
|
||||
|
||||
for ignore in IGNORED_EXCEPTIONS:
|
||||
if isinstance(ignore, tuple):
|
||||
@@ -141,6 +142,12 @@ def _enable_errortracking():
|
||||
# we only want our active bundled plugins
|
||||
return None
|
||||
|
||||
if plugin is not None:
|
||||
plugin_info = plugin_manager().get_plugin_info(plugin)
|
||||
if plugin_info is None or not plugin_info.bundled:
|
||||
# we only want our active bundled plugins
|
||||
return None
|
||||
|
||||
return event
|
||||
|
||||
sentry_sdk.init(url_server,
|
||||
|
||||
Reference in new issue
Block a user