mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Debug hooks
This commit is contained in:
parent
83e6741117
commit
d4d352492c
@ -379,6 +379,8 @@ run_fold1([{_Seq, Module, Function} | Ls], Hook, Val, Args) ->
|
||||
end.
|
||||
|
||||
safe_apply(Hook, Module, Function, Args) ->
|
||||
?DEBUG("Running hook ~p: ~p:~p/~B",
|
||||
[Hook, Module, Function, length(Args)]),
|
||||
try if is_function(Function) ->
|
||||
apply(Function, Args);
|
||||
true ->
|
||||
|
Loading…
Reference in New Issue
Block a user