fix(trace log entry error): better structure and naming
This commit is contained in:
parent
921d82f083
commit
f75c7a5cea
|
@ -58,13 +58,15 @@ maybe_format_msg(#{msg := Msg, meta := Meta} = LogMap, Config) ->
|
||||||
catch
|
catch
|
||||||
C:R:S ->
|
C:R:S ->
|
||||||
Meta#{
|
Meta#{
|
||||||
amsg => Msg,
|
|
||||||
msg => "emqx_logger_jsonfmt_format_error",
|
msg => "emqx_logger_jsonfmt_format_error",
|
||||||
fmt_raw_input => Msg,
|
fmt_raw_input => Msg,
|
||||||
fmt_error => C,
|
fmt_error => C,
|
||||||
fmt_reason => R,
|
fmt_reason => R,
|
||||||
fmt_stacktrace => S,
|
fmt_stacktrace => S,
|
||||||
more => {Msg, Meta, Config}
|
more => #{
|
||||||
|
original_log_entry => LogMap,
|
||||||
|
config => Config
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue