fix(trace log entry error): better structure and naming

This commit is contained in:
Kjell Winblad 2024-05-14 13:38:41 +02:00
parent 921d82f083
commit f75c7a5cea
1 changed files with 4 additions and 2 deletions

View File

@ -58,13 +58,15 @@ maybe_format_msg(#{msg := Msg, meta := Meta} = LogMap, Config) ->
catch
C:R:S ->
Meta#{
amsg => Msg,
msg => "emqx_logger_jsonfmt_format_error",
fmt_raw_input => Msg,
fmt_error => C,
fmt_reason => R,
fmt_stacktrace => S,
more => {Msg, Meta, Config}
more => #{
original_log_entry => LogMap,
config => Config
}
}
end.