mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
enable dumping stack traces for errors
This commit is contained in:
parent
8c50942716
commit
40251a3b49
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ func Errors(log zerolog.Logger) server.Middleware {
|
|||
var code int
|
||||
|
||||
log.Err(err).
|
||||
Stack().
|
||||
Str("trace_id", server.GetTraceID(r.Context())).
|
||||
Msg("ERROR occurred")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue