]> granicus.if.org Git - ejabberd/commitdiff
Debug hooks
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Mon, 8 Jul 2019 06:57:33 +0000 (09:57 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Mon, 8 Jul 2019 06:57:33 +0000 (09:57 +0300)
src/ejabberd_hooks.erl

index 6a5caaaca8c36c4bce89a8c38a9ec0c98a8b9b82..87a559d90b4c2ee21c54334795e854d5247b11ef 100644 (file)
@@ -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 ->