test: fix test cases
This commit is contained in:
parent
c42e980442
commit
067f018337
|
@ -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},
|
||||
|
|
|
@ -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
|
||||
}}
|
||||
).
|
||||
|
||||
|
|
Loading…
Reference in New Issue