diff options
author | Anders Svensson <[email protected]> | 2011-09-23 17:25:08 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-26 17:23:58 +0200 |
commit | 2ba082f42a77d901b5306d15f05e1717ad137e00 (patch) | |
tree | dd8d20af23dc24571cd6ce880fee51d67de1016c /lib/diameter/src/app/diameter_peer.erl | |
parent | 48a715dec34a61208e82f91b49a3d3670a62d7ce (diff) | |
download | otp-2ba082f42a77d901b5306d15f05e1717ad137e00.tar.gz otp-2ba082f42a77d901b5306d15f05e1717ad137e00.tar.bz2 otp-2ba082f42a77d901b5306d15f05e1717ad137e00.zip |
Use single format for error_logger reports
Diffstat (limited to 'lib/diameter/src/app/diameter_peer.erl')
-rw-r--r-- | lib/diameter/src/app/diameter_peer.erl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/diameter/src/app/diameter_peer.erl b/lib/diameter/src/app/diameter_peer.erl index 6b8971b8ea..3e78c4caef 100644 --- a/lib/diameter/src/app/diameter_peer.erl +++ b/lib/diameter/src/app/diameter_peer.erl @@ -148,7 +148,7 @@ handle_call(uptime, _, #state{id = Time} = State) -> {reply, diameter_lib:now_diff(Time), State}; handle_call(Req, From, State) -> - warning_msg("received unexpected request from ~p:~n~w", [From, Req]), + ?UNEXPECTED([Req, From]), {reply, nok, State}. %%% ---------------------------------------------------------- @@ -156,7 +156,7 @@ handle_call(Req, From, State) -> %%% ---------------------------------------------------------- handle_cast(Msg, State) -> - warning_msg("received unexpected message:~n~w", [Msg]), + ?UNEXPECTED([Msg]), {noreply, State}. %%% ---------------------------------------------------------- @@ -169,7 +169,7 @@ handle_info({notify, SvcName, T}, S) -> {noreply, S}; handle_info(Info, State) -> - warning_msg("received unexpected info:~n~w", [Info]), + ?UNEXPECTED([Info]), {noreply, State}. %% ---------------------------------------------------------- @@ -223,8 +223,3 @@ value([], V) -> call(Request) -> gen_server:call(?SERVER, Request, infinity). - -%% warning_msg/2 - -warning_msg(F, A) -> - ?diameter_warning("~p: " ++ F, [?MODULE | A]). |