http3: output panic stack trace as a string (#4700)

It currently is logged as a byte slice.
This commit is contained in:
Marten Seemann
2024-10-15 03:46:21 -05:00
committed by GitHub
parent 588b93c817
commit 4a9a81ca34

View File

@@ -684,7 +684,7 @@ func (s *Server) handleRequest(conn *connection, str quic.Stream, datagrams *dat
if logger == nil { if logger == nil {
logger = slog.Default() 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) handler.ServeHTTP(r, req)