aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-12-09 11:23:04 +0100
committerAnders Svensson <[email protected]>2015-12-09 14:42:28 +0100
commit6121107d63ef65b6b96c99684181578db2eea3aa (patch)
tree3809a4011e8c1db295ccba80c44f35655ab7e4ac
parent23790daf1a2d384b0fc11c655fa825151d9fa420 (diff)
downloadotp-6121107d63ef65b6b96c99684181578db2eea3aa.tar.gz
otp-6121107d63ef65b6b96c99684181578db2eea3aa.tar.bz2
otp-6121107d63ef65b6b96c99684181578db2eea3aa.zip
Remove logging of faulty answer messages
Since excessive numbers of them can overload a node with logging. Note that most log messages have been removed in OTP 17.1, and replaced by counters. In particular, logging as a result of incoming traffic, over which we have no control, is dangerous.
-rw-r--r--lib/diameter/src/base/diameter_traffic.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_traffic.erl b/lib/diameter/src/base/diameter_traffic.erl
index 8b6f026b34..54b0daf7f9 100644
--- a/lib/diameter/src/base/diameter_traffic.erl
+++ b/lib/diameter/src/base/diameter_traffic.erl
@@ -1072,8 +1072,7 @@ int(_) ->
-spec x(any(), atom(), list()) -> no_return().
%% Warn and exit request process on errors in an incoming answer.
-x(Reason, F, A) ->
- diameter_lib:warning_report(Reason, {?MODULE, F, A}),
+x(Reason, _F, _A) ->
x(Reason).
x(T) ->