From 7035b1f166b6d53c45013dd739b7c9fed1241d3f Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 6 Jul 2011 11:10:46 +0100 Subject: [PATCH] Specify the plugin's name on logging calls. --- deluge/plugins/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/plugins/init.py b/deluge/plugins/init.py index 341ec369a..b8081b313 100644 --- a/deluge/plugins/init.py +++ b/deluge/plugins/init.py @@ -49,12 +49,12 @@ class PluginInitBase(object): try: self.plugin.enable() except Exception, e: - log.error("Unable to enable plugin!") + log.error("Unable to enable plugin \"%s\"!", self.plugin._component_name) log.exception(e) def disable(self): try: self.plugin.disable() except Exception, e: - log.error("Unable to disable plugin!") + log.error("Unable to disable plugin \"%s\"!", self.plugin._component_name) log.exception(e)