Skip to content

Commit

Permalink
Merge pull request #53 from id/0629-fix-log-format
Browse files Browse the repository at this point in the history
fix: log format
  • Loading branch information
id authored Jun 29, 2023
2 parents c98d720 + cf6121c commit 2e527eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metrics/emqttb_grafana.erl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ do_annotate(Text, Tags) ->
200 ->
hackney:skip_body(ClientRef);
_ ->
logger:warning("Grafana response code ~p: ~s", [Code, hackney:body(ClientRef)])
{ok, Body} = hackney:body(ClientRef),
logger:warning("Grafana response code ~p: ~s", [Code, Body])
end.

ensure_string(Atom) when is_atom(Atom) ->
Expand Down

0 comments on commit 2e527eb

Please sign in to comment.