fix(logger): no need for special handling of empty string
when formating json logs, there is no need to handle empty strings special, already covered by unicode handling
This commit is contained in:
parent
66d2107007
commit
c8cbbff044
|
@ -224,10 +224,6 @@ best_effort_json_obj(Map, Config) ->
|
|||
do_format_msg("~p", [Map], Config)
|
||||
end.
|
||||
|
||||
json([], _) ->
|
||||
"";
|
||||
json(<<"">>, _) ->
|
||||
"\"\"";
|
||||
json(A, _) when is_atom(A) -> atom_to_binary(A, utf8);
|
||||
json(I, _) when is_integer(I) -> I;
|
||||
json(F, _) when is_float(F) -> F;
|
||||
|
|
Loading…
Reference in New Issue