Skip to content

Commit

Permalink
Specify template
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Dec 27, 2023
1 parent 7b6ff7d commit 7d8a139
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/logger_formatter_json_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ unstructured(_) ->
msg => {"hello ~s", ["world"]},
meta => #{request_id => <<"F6R64Fh3F9NzEscAAAaB">>}
},
#{template => [msg, level, rest]}
#{template => [msg, level, request_id]}
)
)
),
Expand All @@ -90,7 +90,7 @@ unstructured(_) ->
msg => {"hello ~s", ["world"]},
meta => #{request_id => <<"string with spaces">>}
},
#{template => [msg, level, rest]}
#{template => [msg, level, request_id]}
)
)
),
Expand All @@ -99,7 +99,7 @@ unstructured(_) ->
iolist_to_binary(
logger_formatter_json:format(
#{level => info, msg => {"hello ~s", ["world"]}, meta => #{foo => <<"control char\n">>}},
#{template => [msg, level, rest]}
#{template => [msg, level, foo]}
)
)
),
Expand All @@ -109,7 +109,7 @@ unstructured(_) ->
iolist_to_binary(
logger_formatter_json:format(
#{level => info, msg => {"hello ~s", ["world"]}, meta => #{foo => <<0, 1, 2, 3>>}},
#{}
#{template => [msg, level, foo]}
)
)
),
Expand Down

0 comments on commit 7d8a139

Please sign in to comment.