aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/app/diameter_config.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-09-23 17:25:08 +0200
committerAnders Svensson <[email protected]>2011-09-26 17:23:58 +0200
commit2ba082f42a77d901b5306d15f05e1717ad137e00 (patch)
treedd8d20af23dc24571cd6ce880fee51d67de1016c /lib/diameter/src/app/diameter_config.erl
parent48a715dec34a61208e82f91b49a3d3670a62d7ce (diff)
downloadotp-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_config.erl')
-rw-r--r--lib/diameter/src/app/diameter_config.erl11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/diameter/src/app/diameter_config.erl b/lib/diameter/src/app/diameter_config.erl
index 42c70890b3..a6b48fe65b 100644
--- a/lib/diameter/src/app/diameter_config.erl
+++ b/lib/diameter/src/app/diameter_config.erl
@@ -267,7 +267,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 = {error, {bad_request, Req}},
{reply, Reply, State}.
@@ -276,7 +276,7 @@ handle_call(Req, From, State) ->
%%% ----------------------------------------------------------
handle_cast(Msg, State) ->
- warning_msg("received unexpected message:~n~w", [Msg]),
+ ?UNEXPECTED([Msg]),
{noreply, State}.
%%% ----------------------------------------------------------
@@ -309,7 +309,7 @@ handle_info(restart, State) ->
{noreply, State};
handle_info(Info, State) ->
- warning_msg("received unknown info:~n~w", [Info]),
+ ?UNEXPECTED([Info]),
{noreply, State}.
%%--------------------------------------------------------------------
@@ -674,8 +674,3 @@ cb(M,F) ->
call(Request) ->
gen_server:call(?SERVER, Request, infinity).
-
-%% warning_msg/2
-
-warning_msg(F, A) ->
- ?diameter_warning("~p: " ++ F, [?MODULE | A]).