diff --git a/lib/tower_rollbar/rollbar/client.ex b/lib/tower_rollbar/rollbar/client.ex index 6beb307..b1109b9 100644 --- a/lib/tower_rollbar/rollbar/client.ex +++ b/lib/tower_rollbar/rollbar/client.ex @@ -4,20 +4,20 @@ defmodule TowerRollbar.Rollbar.Client do def post(path, payload) when is_map(payload) do case :httpc.request( - :post, - { - ~c"#{@base_url}#{path}", - [{@access_token_header, access_token()}], - ~c"application/json", - Jason.encode!(payload) - }, - [ - ssl: [ - cacerts: :public_key.cacerts_get() - ] - ], - [] - ) do + :post, + { + ~c"#{@base_url}#{path}", + [{@access_token_header, access_token()}], + ~c"application/json", + Jason.encode!(payload) + }, + [ + ssl: [ + cacerts: :public_key.cacerts_get() + ] + ], + [] + ) do {:ok, result} -> result |> IO.inspect() diff --git a/lib/tower_rollbar/rollbar/item.ex b/lib/tower_rollbar/rollbar/item.ex index 1c19d39..bbb9e19 100644 --- a/lib/tower_rollbar/rollbar/item.ex +++ b/lib/tower_rollbar/rollbar/item.ex @@ -29,14 +29,15 @@ defmodule TowerRollbar.Rollbar.Item do person = Keyword.get(options, :person) %{ - "data" => %{ - "environment" => environment(), - "body" => body - } - |> maybe_put_request_data(plug_conn) - |> maybe_put_level(level) - |> maybe_put_custom(custom) - |> maybe_put_person(person) + "data" => + %{ + "environment" => environment(), + "body" => body + } + |> maybe_put_request_data(plug_conn) + |> maybe_put_level(level) + |> maybe_put_custom(custom) + |> maybe_put_person(person) } end