diff options
author | Anders Svensson <[email protected]> | 2011-09-27 11:49:14 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-09-27 11:49:14 +0200 |
commit | 571bc8c6135cb902e7cf9429f1bfad67284f8f23 (patch) | |
tree | 31b618935858320435884a80cf868b7cf22d5d42 /lib/diameter/src/app/diameter_internal.hrl | |
parent | 67e216c86754e7076ffdbb87fec8b48ab0d28e56 (diff) | |
parent | 1c9017d8970713a24a36929063bcc76a28ae54c5 (diff) | |
download | otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.tar.gz otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.tar.bz2 otp-571bc8c6135cb902e7cf9429f1bfad67284f8f23.zip |
Merge branch 'dev' into major
Diffstat (limited to 'lib/diameter/src/app/diameter_internal.hrl')
-rw-r--r-- | lib/diameter/src/app/diameter_internal.hrl | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/lib/diameter/src/app/diameter_internal.hrl b/lib/diameter/src/app/diameter_internal.hrl index 9de3914830..78645b1912 100644 --- a/lib/diameter/src/app/diameter_internal.hrl +++ b/lib/diameter/src/app/diameter_internal.hrl @@ -37,9 +37,10 @@ %% Failure reports always get a stack trace. -define(STACK, erlang:get_stacktrace()). -%% Info report for anything unexpected. --define(REPORT(Reason, Func, Args), - diameter_lib:report(Reason, {?MODULE, Func, Args})). +%% Warning report for unexpected messages in various processes. +-define(UNEXPECTED(F,A), + diameter_lib:warning_report(unexpected, {?MODULE, F, A})). +-define(UNEXPECTED(A), ?UNEXPECTED(?FUNC, A)). %% Something to trace on. -define(LOG(Slogan, Details), @@ -77,19 +78,3 @@ server_id, is_dynamic, expiration}). - -%%%---------------------------------------------------------------------- -%%% Error/warning/info message macro(s) -%%%---------------------------------------------------------------------- - --define(diameter_info(F, A), - (catch error_logger:info_msg("[ ~w : ~w : ~p ] ~n" ++ F ++ "~n", - [?APPLICATION, ?MODULE, self()|A]))). - --define(diameter_warning(F, A), - (catch error_logger:warning_msg("[ ~w : ~w : ~p ] ~n" ++ F ++ "~n", - [?APPLICATION, ?MODULE, self()|A]))). - --define(diameter_error(F, A), - (catch error_logger:error_msg("[ ~w : ~w : ~p ] ~n" ++ F ++ "~n", - [?APPLICATION, ?MODULE, self()|A]))). |