refactor: simplify redis trace formatting

This commit is contained in:
Kjell Winblad 2024-05-28 06:17:03 +02:00
parent 4099e22a77
commit 3f1fe413ee
1 changed files with 2 additions and 3 deletions

View File

@ -170,9 +170,8 @@ on_batch_query(
end. end.
trace_format_commands(Commands0) -> trace_format_commands(Commands0) ->
Commands1 = [[unicode:characters_to_list(S) || S <- C] || C <- Commands0], Commands1 = [lists:join(" ", C) || C <- Commands0],
Commands2 = [lists:join(" ", C) || C <- Commands1], unicode:characters_to_binary(lists:join("; ", Commands1)).
unicode:characters_to_binary(lists:join("; ", Commands2)).
on_format_query_result({ok, Msg}) -> on_format_query_result({ok, Msg}) ->
#{result => ok, message => Msg}; #{result => ok, message => Msg};