|
@@ -11,7 +11,7 @@ from sentry.utils.sdk import configure_sdk
|
|
|
from sentry.utils.warnings import DeprecatedSettingWarning
|
|
|
|
|
|
|
|
|
-def register_plugins(settings, test_plugins=False):
|
|
|
+def register_plugins(settings, test_plugins=False, raise_on_plugin_load_failure=False):
|
|
|
from pkg_resources import iter_entry_points
|
|
|
from sentry.plugins.base import plugins
|
|
|
|
|
@@ -35,6 +35,8 @@ def register_plugins(settings, test_plugins=False):
|
|
|
click.echo(
|
|
|
"Failed to load plugin %r:\n%s" % (ep.name, traceback.format_exc()), err=True
|
|
|
)
|
|
|
+ if raise_on_plugin_load_failure:
|
|
|
+ raise
|
|
|
else:
|
|
|
plugins.register(plugin)
|
|
|
|