From e467020e29aae638d018b8a793b1816f7a65c893 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 9 Nov 2011 23:28:01 +0100 Subject: Add messages on plugin load/unload --- src/plugin_manager.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/plugin_manager.py b/src/plugin_manager.py index 067cb10e..83ae53d5 100644 --- a/src/plugin_manager.py +++ b/src/plugin_manager.py @@ -61,6 +61,7 @@ class PluginManager(object): self.commands[name] = {} self.event_handlers[name] = [] self.plugins[name] = module.Plugin(self, self.core, plugins_conf_dir) + self.core.information('Plugin %s loaded' % name, 'Info') def unload(self, name): if name in self.plugins: @@ -74,6 +75,7 @@ class PluginManager(object): del self.plugins[name] del self.commands[name] del self.event_handlers[name] + self.core.information('Plugin %s unloaded' % name, 'Info') except Exception as e: import traceback self.core.information(_("Could not unload plugin (may not be safe to try again): ") + traceback.format_exc()) -- cgit v1.2.3