aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-06-19 15:12:19 +0200
committerAnders Svensson <[email protected]>2015-06-20 14:29:30 +0200
commit1f483bd5eb6371a1bf2517188658cc4a9cb57cae (patch)
tree9e64e21e59f3ef730f1a1460bf760a22d65fae23 /lib/diameter/src/base
parentcb89a27002558f19f236febef877c5cf135c4c8d (diff)
downloadotp-1f483bd5eb6371a1bf2517188658cc4a9cb57cae.tar.gz
otp-1f483bd5eb6371a1bf2517188658cc4a9cb57cae.tar.bz2
otp-1f483bd5eb6371a1bf2517188658cc4a9cb57cae.zip
Log discarded answers
To diameter_lib:log/4, which was last motivated in commit 39acfdb0.
Diffstat (limited to 'lib/diameter/src/base')
-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.