Skip to content

Commit

Permalink
Steamroll
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Jul 20, 2024
1 parent dc1b893 commit 0fbee5b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/logger_formatter_json.erl
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ format_msg({string, Chardata}, Meta, Config) when is_binary(Chardata) ->
format_msg({string, Chardata}, Meta, Config) ->
case io_lib:printable_unicode_list(Chardata) of
true -> format_msg({"~ts", [Chardata]}, Meta, Config);
false ->
format_msg({"~ts", [iolist_to_binary(Chardata)]}, Meta, Config)
% Flat = lists:flatten(Chardata),
% Strings = lists:map(fun (X) -> to_string(X, Config) end, Flat),
% format_msg({"~ts", [lists:flatten(Strings)]}, Meta, Config)
false -> format_msg({"~ts", [iolist_to_binary(Chardata)]}, Meta, Config)
% Flat = lists:flatten(Chardata),
% Strings = lists:map(fun (X) -> to_string(X, Config) end, Flat),
% format_msg({"~ts", [lists:flatten(Strings)]}, Meta, Config)
end;

format_msg({report, Report}, _Meta, Config) when is_map(Report) ->
Expand Down

0 comments on commit 0fbee5b

Please sign in to comment.