From 7d4363380b707434189e2ea6821ec6cc82bf7deb Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 23 Feb 2026 10:51:55 +1100 Subject: [PATCH] fix: log plugin enabled/disabled status during initialization Previously plugins that failed init() were silently removed from storage. Now logs at INFO level whether each plugin is enabled or disabled. --- searx/plugins/_core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/plugins/_core.py b/searx/plugins/_core.py index 4b9db076e..6d80a8926 100644 --- a/searx/plugins/_core.py +++ b/searx/plugins/_core.py @@ -248,7 +248,10 @@ class PluginStorage: for plg in self.plugin_list.copy(): if not plg.init(app): + plg.log.info("plugin is disabled (init returned False)") self.plugin_list.remove(plg) + else: + plg.log.info("plugin is enabled") def pre_search(self, request: SXNG_Request, search: "SearchWithPlugins") -> bool: