mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Specify the plugin's name on logging calls.
This commit is contained in:
parent
a701fddbe8
commit
7035b1f166
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user