Skip to content

Commit 019fd4b

Browse files
authored
Replace "jsx" with "json" (#12)
1 parent 3f59703 commit 019fd4b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ clean: $(REBAR)
1717

1818
.PHONY: test
1919
test: $(REBAR) all
20-
@$(REBAR) test
2120
@$(REBAR) fmt --check
2221

2322
.PHONY: fresh

rebar.config

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
]}.
1313

1414
{deps, [
15-
{lager, "~> 3.9"},
16-
{jsx, "~> 3.1"}
15+
{lager, "~> 3.9"}
1716
]}.
1817

1918
{erlfmt, [

rebar.lock

-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{"1.2.0",
22
[{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
3-
{<<"jsx">>,{pkg,<<"jsx">>,<<"3.1.0">>},0},
43
{<<"lager">>,{pkg,<<"lager">>,<<"3.9.2">>},0}]}.
54
[
65
{pkg_hash,[
76
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
8-
{<<"jsx">>, <<"D12516BAA0BB23A59BB35DCCAF02A1BD08243FCBB9EFE24F2D9D056CCFF71268">>},
97
{<<"lager">>, <<"4CAB289120EB24964E3886BD22323CB5FEFE4510C076992A23AD18CF85413D8C">>}]},
108
{pkg_hash_ext,[
119
{<<"goldrush">>, <<"99CB4128CFFCB3227581E5D4D803D5413FA643F4EB96523F77D9E6937D994CEB">>},
12-
{<<"jsx">>, <<"0C5CC8FDC11B53CC25CF65AC6705AD39E54ECC56D1C22E4ADB8F5A53FB9427F3">>},
1310
{<<"lager">>, <<"7F904D9E87A8CB7E66156ED31768D1C8E26EBA1D54F4BC85B1AA4AC1F6340C28">>}]}
1411
].

src/bugsnag.erl

+6-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ send_exception(_Type, Reason, Message, _Module, _Line, Trace, _Request, State) -
8888
]
8989
]}
9090
],
91-
deliver_payload(jsx:encode(Payload)).
91+
deliver_payload(json:encode(Payload)).
9292

9393
process_trace(Trace) ->
9494
lager:info("Processing trace ~p", [Trace]),
@@ -117,7 +117,11 @@ process_trace([Current | Rest], ProcessedTrace) ->
117117

118118
deliver_payload(Payload) ->
119119
lager:info("Sending exception: ~p", [Payload]),
120-
case httpc:request(post, {?NOTIFY_ENDPOINT, [], "application/json", Payload}, [{timeout, 5000}], []) of
120+
case
121+
httpc:request(
122+
post, {?NOTIFY_ENDPOINT, [], "application/json", Payload}, [{timeout, 5000}], []
123+
)
124+
of
121125
{ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} ->
122126
lager:info("Error sent. Response: ~p", [Body]);
123127
{_, {{_Version, Status, ReasonPhrase}, _Headers, _Body}} ->

0 commit comments

Comments
 (0)