Skip to content
Permalink
Browse files
bugfix
  • Loading branch information
bartekgorny committed Apr 16, 2019
1 parent c1edbf1 commit 29e364913898c77086d07b01b15b82f2f3261dd1
Showing 1 changed file with 4 additions and 4 deletions.
@@ -638,18 +638,18 @@ format_trace_output(Recs, true, Args) when is_map(Args) ->
ItemList = maps:to_list(Map),
[Label1,
"#{",
join(", ", [format_kv(Recs, Key, Val) || {Key, Val} <- ItemList]),
join(", ", [format_kv(Recs, true, Key, Val) || {Key, Val} <- ItemList]),
"}"];
format_trace_output(Recs, false, Args) when is_map(Args) ->
ItemList = maps:to_list(Args),
["#{",
join(", ", [format_kv(Recs, Key, Val) || {Key, Val} <- ItemList]),
join(", ", [format_kv(Recs, false, Key, Val) || {Key, Val} <- ItemList]),
"}"];
format_trace_output(_, _, Args) ->
io_lib:format("~p", [Args]).

format_kv(Recs, Key, Val) ->
[format_trace_output(Recs, true, Key), "=", format_trace_output(Recs, true, Val)].
format_kv(Recs, Maps, Key, Val) ->
[format_trace_output(Recs, Maps, Key), "=", format_trace_output(Recs, Maps, Val)].

%%%%%%%%%%%%%%%
%%% HELPERS %%%

0 comments on commit 29e3649

Please sign in to comment.