From 7d8a139d0869d8d4c461f3a467b937f3941be629 Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Wed, 27 Dec 2023 11:53:44 -0600 Subject: [PATCH] Specify template --- test/logger_formatter_json_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/logger_formatter_json_SUITE.erl b/test/logger_formatter_json_SUITE.erl index d0478d9..4ff05d3 100644 --- a/test/logger_formatter_json_SUITE.erl +++ b/test/logger_formatter_json_SUITE.erl @@ -77,7 +77,7 @@ unstructured(_) -> msg => {"hello ~s", ["world"]}, meta => #{request_id => <<"F6R64Fh3F9NzEscAAAaB">>} }, - #{template => [msg, level, rest]} + #{template => [msg, level, request_id]} ) ) ), @@ -90,7 +90,7 @@ unstructured(_) -> msg => {"hello ~s", ["world"]}, meta => #{request_id => <<"string with spaces">>} }, - #{template => [msg, level, rest]} + #{template => [msg, level, request_id]} ) ) ), @@ -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]} ) ) ), @@ -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]} ) ) ),