diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-09 23:28:01 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-09 23:28:01 +0100 |
commit | e467020e29aae638d018b8a793b1816f7a65c893 (patch) | |
tree | 17f13b0fec21fae3d9d415a9d7c13597dc5aabfe /src/plugin_manager.py | |
parent | b43a2ff4a23ae0bc032ac704e504db44daa76022 (diff) | |
download | poezio-e467020e29aae638d018b8a793b1816f7a65c893.tar.gz poezio-e467020e29aae638d018b8a793b1816f7a65c893.tar.bz2 poezio-e467020e29aae638d018b8a793b1816f7a65c893.tar.xz poezio-e467020e29aae638d018b8a793b1816f7a65c893.zip |
Add messages on plugin load/unload
Diffstat (limited to 'src/plugin_manager.py')
-rw-r--r-- | src/plugin_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |