mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 15:44:06 +01:00
core: log which plugin is being called when calling hooks
This commit is contained in:
parent
0378fcca1d
commit
034731ab1e
@ -266,7 +266,8 @@ class Irc():
|
|||||||
# Iterate over hooked functions, catching errors accordingly
|
# Iterate over hooked functions, catching errors accordingly
|
||||||
for hook_func in world.command_hooks[hook_cmd]:
|
for hook_func in world.command_hooks[hook_cmd]:
|
||||||
try:
|
try:
|
||||||
log.debug('(%s) Calling function %s', self.name, hook_func)
|
log.debug('(%s) Calling hook function %s from plugin "%s"', self.name,
|
||||||
|
hook_func, hook_func.__module__)
|
||||||
hook_func(self, numeric, command, parsed_args)
|
hook_func(self, numeric, command, parsed_args)
|
||||||
except Exception:
|
except Exception:
|
||||||
# We don't want plugins to crash our servers...
|
# We don't want plugins to crash our servers...
|
||||||
|
Loading…
Reference in New Issue
Block a user