mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
hook_deps: Use precise name: hooks are added and later deleted, not removed
This commit is contained in:
parent
d2e7b5ffa0
commit
2554b51173
@ -225,7 +225,7 @@ analyze_hooks({Add, Del}) ->
|
|||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~p: Error: "
|
err("~s:~p: Error: "
|
||||||
"hook ~s->~s->~s is added but was never removed~n",
|
"hook ~s->~s->~s is added but was never deleted~n",
|
||||||
[File, FileNo, Hook, Mod, Fun])
|
[File, FileNo, Hook, Mod, Fun])
|
||||||
end
|
end
|
||||||
end, maps:to_list(Add1)),
|
end, maps:to_list(Add1)),
|
||||||
@ -235,7 +235,7 @@ analyze_hooks({Add, Del}) ->
|
|||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~p: Error: "
|
err("~s:~p: Error: "
|
||||||
"hook ~s->~s->~s is removed but was never added~n",
|
"hook ~s->~s->~s is deleted but was never added~n",
|
||||||
[File, FileNo, Hook, Mod, Fun])
|
[File, FileNo, Hook, Mod, Fun])
|
||||||
end
|
end
|
||||||
end, maps:to_list(Del1)).
|
end, maps:to_list(Del1)).
|
||||||
|
Loading…
Reference in New Issue
Block a user