diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-12 11:55:36 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-07-12 11:55:36 +0300 |
commit | 6f5d99275b2c41738647dd46659ad5fd0a424827 (patch) | |
tree | 55d12cb3d244e4363dfb2f80df1d09bb98269d40 /src/ejabberd_auth.erl | |
parent | Improve previous commit (diff) |
Process unexpected messages uniformly
Diffstat (limited to 'src/ejabberd_auth.erl')
-rw-r--r-- | src/ejabberd_auth.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl index c5fda7d3..f97a4026 100644 --- a/src/ejabberd_auth.erl +++ b/src/ejabberd_auth.erl @@ -117,9 +117,9 @@ init([]) -> init_cache(HostModules), {ok, #state{host_modules = HostModules}}. -handle_call(_Request, _From, State) -> - Reply = ok, - {reply, Reply, State}. +handle_call(Request, From, State) -> + ?WARNING_MSG("Unexpected call from ~p: ~p", [From, Request]), + {noreply, State}. handle_cast({host_up, Host}, #state{host_modules = HostModules} = State) -> Modules = auth_modules(Host), @@ -150,7 +150,8 @@ handle_cast(Msg, State) -> ?WARNING_MSG("Unexpected cast: ~p", [Msg]), {noreply, State}. -handle_info(_Info, State) -> +handle_info(Info, State) -> + ?WARNING_MSG("Unexpected info: ~p", [Info]), {noreply, State}. terminate(_Reason, State) -> |