Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Log discarded answers
Browse files Browse the repository at this point in the history
To diameter_lib:log/4, which was last motivated in commit 39acfdb.
  • Loading branch information
Anders Svensson committed Jun 20, 2015
1 parent cb89a27 commit 1f483bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/diameter/src/base/diameter_traffic.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 1f483bd

Please sign in to comment.