mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
Debug hooks
This commit is contained in:
parent
83e6741117
commit
d4d352492c
1 changed files with 2 additions and 0 deletions
|
@ -379,6 +379,8 @@ run_fold1([{_Seq, Module, Function} | Ls], Hook, Val, Args) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
safe_apply(Hook, Module, Function, Args) ->
|
safe_apply(Hook, Module, Function, Args) ->
|
||||||
|
?DEBUG("Running hook ~p: ~p:~p/~B",
|
||||||
|
[Hook, Module, Function, length(Args)]),
|
||||||
try if is_function(Function) ->
|
try if is_function(Function) ->
|
||||||
apply(Function, Args);
|
apply(Function, Args);
|
||||||
true ->
|
true ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue