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/ext_mod.erl | |
parent | Improve previous commit (diff) |
Process unexpected messages uniformly
Diffstat (limited to 'src/ext_mod.erl')
-rw-r--r-- | src/ext_mod.erl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ext_mod.erl b/src/ext_mod.erl index 607f7b08..75338b99 100644 --- a/src/ext_mod.erl +++ b/src/ext_mod.erl @@ -63,14 +63,16 @@ add_paths() -> [code:add_patha(module_ebin_dir(Module)) || {Module, _} <- installed()]. -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(_Msg, State) -> +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) -> |