aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-06-19 15:12:19 +0200
committerAnders Svensson <[email protected]>2015-08-05 01:33:18 +0200
commit82c15a915981842a7013375d2e62d00d775078e1 (patch)
tree81a363ed674a426ca0841a68874f292c30791aef /lib/diameter/src
parentf3fefbae24a2569a13b538d80d0e99129963ebef (diff)
downloadotp-82c15a915981842a7013375d2e62d00d775078e1.tar.gz
otp-82c15a915981842a7013375d2e62d00d775078e1.tar.bz2
otp-82c15a915981842a7013375d2e62d00d775078e1.zip
Log discarded answers
To diameter_lib:log/4, which was last motivated in commit 39acfdb0.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r--lib/diameter/src/base/diameter_traffic.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_traffic.erl b/lib/diameter/src/base/diameter_traffic.erl
index eb4bbae931..230a05fa11 100644
--- a/lib/diameter/src/base/diameter_traffic.erl
+++ b/lib/diameter/src/base/diameter_traffic.erl
@@ -261,7 +261,8 @@ recv(false, #request{ref = Ref, handler = Pid} = Req, _, Pkt, Dict0, _) ->
%% any others are discarded.
%% ... or not.
-recv(false, false, TPid, _, _, _) ->
+recv(false, false, TPid, Pkt, _, _) ->
+ ?LOG(discarded, Pkt#diameter_packet.header),
incr(TPid, {{unknown, 0}, recv, discarded}),
ok.