forked from quic-go/quic-go
http3: output panic stack trace as a string (#4700)
It currently is logged as a byte slice.
This commit is contained in:
@@ -684,7 +684,7 @@ func (s *Server) handleRequest(conn *connection, str quic.Stream, datagrams *dat
|
||||
if logger == nil {
|
||||
logger = slog.Default()
|
||||
}
|
||||
logger.Error("http: panic serving", "arg", p, "trace", buf)
|
||||
logger.Error("http: panic serving", "arg", p, "trace", string(buf))
|
||||
}
|
||||
}()
|
||||
handler.ServeHTTP(r, req)
|
||||
|
||||
Reference in New Issue
Block a user