diff options
author | Micael Karlberg <[email protected]> | 2010-06-02 23:31:23 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-06-02 23:31:23 +0000 |
commit | 16d2e129ff59db4917b0495d914df646f62669b9 (patch) | |
tree | 5cbfeb11b19c0e48aa8d797f95566c23f67ef60b /lib/megaco/src/app | |
parent | 007340ead70a3867be6f65c60222a6a30afdf28c (diff) | |
download | otp-16d2e129ff59db4917b0495d914df646f62669b9.tar.gz otp-16d2e129ff59db4917b0495d914df646f62669b9.tar.bz2 otp-16d2e129ff59db4917b0495d914df646f62669b9.zip |
OTP-8634: Pending counter raise condition.
Diffstat (limited to 'lib/megaco/src/app')
-rw-r--r-- | lib/megaco/src/app/megaco_internal.hrl | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/lib/megaco/src/app/megaco_internal.hrl b/lib/megaco/src/app/megaco_internal.hrl index adbaacacef..2c124e9060 100644 --- a/lib/megaco/src/app/megaco_internal.hrl +++ b/lib/megaco/src/app/megaco_internal.hrl @@ -1,19 +1,19 @@ %% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1999-2009. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 1999-2010. All Rights Reserved. +%% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. -%% +%% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. -%% +%% %% %CopyrightEnd% %% @@ -139,6 +139,22 @@ [?APPLICATION, ?MODULE, self()|A]))). +-define(megaco_ereport(Label, Report), + ?megaco_report(error_report, Label, Report)). + +-define(megaco_wreport(Label, Report), + ?megaco_report(warning_report, Label, Report)). + +-define(megaco_ireport(Label, Report), + ?megaco_report(info_report, Label, Report)). + +-define(megaco_report(Func, Label, Report), + (catch error_logger:Func([{label, Label}, + {application, ?APPLICATION}, + {module, ?MODULE}, + {process, self()} | Report]))). + + %%%---------------------------------------------------------------------- %%% Default (ignore) value of the Extra argument to the %%% megaco:receive_message/5 and process_received_message functions/5. |