test: fix test cases

This commit is contained in:
zmstone 2024-03-26 13:36:12 +01:00
parent c42e980442
commit 067f018337
2 changed files with 7 additions and 4 deletions

View File

@ -77,7 +77,8 @@ t_log_conf(_Conf) ->
<<"rotation_count">> => 10,
<<"rotation_size">> => <<"50MB">>,
<<"time_offset">> => <<"system">>,
<<"path">> => <<"log/emqx.log">>
<<"path">> => <<"log/emqx.log">>,
<<"timestamp_format">> => <<"auto">>
},
ExpectLog1 = #{
<<"console">> =>
@ -85,7 +86,8 @@ t_log_conf(_Conf) ->
<<"enable">> => true,
<<"formatter">> => <<"text">>,
<<"level">> => <<"debug">>,
<<"time_offset">> => <<"system">>
<<"time_offset">> => <<"system">>,
<<"timestamp_format">> => <<"auto">>
},
<<"file">> =>
#{<<"default">> => FileExpect},

View File

@ -131,8 +131,9 @@ log.file_handlers {
chars_limit => unlimited,
depth => 100,
single_line => true,
template => [time, " [", level, "] ", msg, "\n"],
time_offset => TimeOffset
template => ["[", level, "] ", msg, "\n"],
time_offset => TimeOffset,
timestamp_format => auto
}}
).