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

View File

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