Merge pull request #12790 from HJianBo/fix-emqx-12104

chore: remove the duplicated time field
This commit is contained in:
zhongwencool 2024-03-27 13:56:12 +08:00 committed by GitHub
commit 702a2325a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ filters(#{type := ip_address, filter := Filter, name := Name}) ->
formatter(#{type := _Type, payload_encode := PayloadEncode}) ->
{emqx_trace_formatter, #{
%% template is for ?SLOG message not ?TRACE.
template => [time, " [", level, "] ", msg, "\n"],
%% XXX: Don't need to print the time field in logger_formatter due to we manually concat it
%% in emqx_logger_textfmt:fmt/2
template => ["[", level, "] ", msg, "\n"],
single_line => true,
max_size => unlimited,
depth => unlimited,