callbacks.py: log plugin name in registryValue='text' errors

This can help with debugging to find what plugins are passing invalid things to registryValue().
This commit is contained in:
James Lu 2015-04-05 13:42:03 -07:00
parent 3275806740
commit 6add519765

View File

@ -1358,7 +1358,8 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
if ircutils.isChannel(channel):
group = group.get(channel)
else:
self.log.debug('registryValue got channel=%r', channel)
self.log.debug('%s: registryValue got channel=%r', plugin,
channel)
if value:
return group()
else: