Skip to content

Commit

Permalink
Log warning on remote socket closure. Closes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
aeden committed May 23, 2018
1 parent 8fd35bc commit 8b62293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bugsnag.erl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ deliver_payload(Payload) ->
{ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} ->
lager:info("Error sent. Response: ~p", [Body]);
{_, {{_Version, Status, ReasonPhrase}, _Headers, _Body}} ->
lager:warning("Failed to send error to bugsnag (~p : ~p)", [Status, ReasonPhrase])
lager:warning("Failed to send error to bugsnag (~p : ~p)", [Status, ReasonPhrase]);
{error, socket_closed_remotely} ->
lager:warning("Failed to send error to bugsnag, socket closed remotely")
end,

ok.
Expand Down

0 comments on commit 8b62293

Please sign in to comment.