feat: disable plugin when init failed

This commit is contained in:
lanvent
2023-04-05 18:05:28 +08:00
parent 2cf71dd6f2
commit 5bd9f50818
6 changed files with 21 additions and 11 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ class BDunit(Plugin):
self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context
logger.info("[BDunit] inited")
except Exception as e:
logger.warn(
"BDunit init failed: %s, ignore " % e)
logger.warn("[BDunit] init failed, ignore ")
raise e
def on_handle_context(self, e_context: EventContext):