From 1a7c36a19c5c800c2aa0f822e7ce6ef3caa09334 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 23 Mar 2023 15:24:10 +0100 Subject: [PATCH] core: log a traceback if a plugin can't be loaded --- sat/core/sat_main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sat/core/sat_main.py b/sat/core/sat_main.py index 19d12663..9d2564fa 100644 --- a/sat/core/sat_main.py +++ b/sat/core/sat_main.py @@ -432,10 +432,8 @@ class SAT(service.Service): try: self.plugins[import_name] = getattr(mod, plugin_info["main"])(self) except Exception as e: - log.warning( - 'Error while loading plugin "{name}", ignoring it: {error}'.format( - name=plugin_info["name"], error=e - ) + log.exception( + f"Can't load plugin \"{plugin_info['name']}\", ignoring it: {e}" ) if optional: return