mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
Specify the plugin's name on logging calls.
This commit is contained in:
parent
a701fddbe8
commit
7035b1f166
1 changed files with 2 additions and 2 deletions
|
@ -49,12 +49,12 @@ class PluginInitBase(object):
|
||||||
try:
|
try:
|
||||||
self.plugin.enable()
|
self.plugin.enable()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.error("Unable to enable plugin!")
|
log.error("Unable to enable plugin \"%s\"!", self.plugin._component_name)
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
|
||||||
def disable(self):
|
def disable(self):
|
||||||
try:
|
try:
|
||||||
self.plugin.disable()
|
self.plugin.disable()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.error("Unable to disable plugin!")
|
log.error("Unable to disable plugin \"%s\"!", self.plugin._component_name)
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue