diff --git a/src/logger_formatter_json.erl b/src/logger_formatter_json.erl index f3e2b44..ebcd3b6 100644 --- a/src/logger_formatter_json.erl +++ b/src/logger_formatter_json.erl @@ -188,10 +188,7 @@ is_printable(X) when is_binary(X) -> % match -> false; % _ -> true % end; - io_lib:printable_unicode_list(unicode:characters_to_list(X, unicode)); - -% is_printable(X) when is_list(X) -> unicode:characters_to_list(X, unicode); -is_printable(_) -> false. + io_lib:printable_unicode_list(unicode:characters_to_list(X, unicode)). -spec format_msg(Msg, Meta, Config) ->