forked from quic-go/quic-go
use log.Fatal() instead of panic() in example client and server
This commit is contained in:
@@ -85,7 +85,7 @@ var _ http.Handler = &tracingHandler{}
|
||||
func (h *tracingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
h.handler.ServeHTTP(w, r)
|
||||
if err := exportTraces(); err != nil {
|
||||
panic(err)
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user