mirror of
https://github.com/wahyd4/heysear.git
synced 2026-08-08 21:05:28 +10:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user