Skip to content

Commit

Permalink
Make line shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Dec 26, 2023
1 parent e5e97b3 commit cf311bb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/logger_formatter_json_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,10 @@ unstructured(_) ->
)
),
?assertEqual(
<<
"{\"msg\":\"hello world\",\"level\":\"info\",\"foo\":\"<<\\\"string with control char\\\\n\\\">>\"}\n"
>>,
<<"{\"msg\":\"hello world\",\"level\":\"info\",\"foo\":\"<<\\\"control char\\\\n\\\">>\"}\n">>,
iolist_to_binary(
logger_formatter_json:format(
#{
level => info,
msg => {"hello ~s", ["world"]},
meta => #{foo => <<"string with control char\n">>}
},
#{level => info, msg => {"hello ~s", ["world"]}, meta => #{foo => <<"control char\n">>}},
#{}
)
)
Expand Down

0 comments on commit cf311bb

Please sign in to comment.