fix(frame): simlify error excption context
We should not raise error with the exact context after logging it because it will end up duplicated in the log
This commit is contained in:
parent
c1ff30896a
commit
225ebdaa87
|
@ -726,7 +726,7 @@ serialize_and_inc_stats_fun(#state{serialize = Serialize}) ->
|
||||||
?SLOG(error, #{ input_packet => Packet
|
?SLOG(error, #{ input_packet => Packet
|
||||||
, exception => Reason
|
, exception => Reason
|
||||||
, stacktrace => Stacktrace}),
|
, stacktrace => Stacktrace}),
|
||||||
erlang:raise(error, Reason, Stacktrace)
|
erlang:error(frame_serialize_error)
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
|
@ -646,7 +646,7 @@ serialize_and_inc_stats_fun(#state{serialize = Serialize}) ->
|
||||||
?SLOG(error, #{ input_packet => Packet
|
?SLOG(error, #{ input_packet => Packet
|
||||||
, exception => Reason
|
, exception => Reason
|
||||||
, stacktrace => Stacktrace}),
|
, stacktrace => Stacktrace}),
|
||||||
erlang:raise(error, Reason, Stacktrace)
|
erlang:error(frame_serialize_error)
|
||||||
end
|
end
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue