Skip to content

Commit

Permalink
Remove potentially large error reason in call to diameter_lib:log/4
Browse files Browse the repository at this point in the history
The function is intended to be traced on, to see abnormalities (mostly)
without producing excessive output. In the case of decode failure, the
error reason can be things like {badmatch, HugeBinary}.

Missed in commit 0058430.
  • Loading branch information
Anders Svensson committed Mar 27, 2015
1 parent 7edb0dd commit 39acfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diameter/include/diameter_gen.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ d(false, Reason, Name, Avp, {Avps, Acc}) ->
diameter_lib:log(decode_error,
?MODULE,
?LINE,
{Reason, Name, Avp#diameter_avp.name, Stack}),
{Name, Avp#diameter_avp.name, Stack}),
{Rec, Failed} = Acc,
{[Avp|Avps], {Rec, [rc(Reason, Avp) | Failed]}}.

Expand Down

0 comments on commit 39acfdb

Please sign in to comment.