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_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},
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}}
|
}}
|
||||||
).
|
).
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue