|
@@ -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.
|
|
|
|
|
|