Skip to content

Commit

Permalink
nicer log representation for unhandled value types
Browse files Browse the repository at this point in the history
  • Loading branch information
rubysolo authored and navinpeiris committed May 3, 2020
1 parent f7f1ae0 commit 2d24779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logster/string_formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ defmodule Logster.StringFormatter do
defp format_value(value) when is_float(value), do: :erlang.float_to_binary(value, decimals: 3)
defp format_value(value) when is_atom(value) or is_integer(value), do: to_string(value)
defp format_value(value) when is_map(value), do: Jason.encode!(value)
defp format_value(_), do: "(unprintable)"
defp format_value(value), do: inspect(value)
end

0 comments on commit 2d24779

Please sign in to comment.