Skip to content

Commit

Permalink
steamroll
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Dec 27, 2023
1 parent b39859a commit 983cc3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/logger_formatter_json_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,20 @@ unstructured(_) ->
),
ok.


duplicate_keys(_) ->
?assertEqual(
<<"{\"msg\":\"hello world\",\"level\":\"info\",\"foo\":\"bar\"}\n">>,
iolist_to_binary(
logger_formatter_json:format(
#{
level => info,
msg => {"hello ~s", ["world"]},
meta => #{foo => "bar"}
},
#{level => info, msg => {"hello ~s", ["world"]}, meta => #{foo => "bar"}},
#{template => [msg, level, foo, foo]}
)
)
),
ok.


structured(_) ->
?assertEqual(
<<"{\"hi\":\"there\",\"level\":\"info\"}\n">>,
Expand Down

0 comments on commit 983cc3e

Please sign in to comment.