From 8bbf89248012459f05dc03d7c5826202899bf268 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Sun, 5 Jan 2020 23:02:07 -0800 Subject: [PATCH] routes: be more paranoid once we have an non-EOF error in this path, not clear if we can really recover. --- pkg/api/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/routes.go b/pkg/api/routes.go index db71db65..9c3e4413 100644 --- a/pkg/api/routes.go +++ b/pkg/api/routes.go @@ -920,7 +920,7 @@ func WriteDataFromReader(w http.ResponseWriter, status int, length int64, mediaT break } else if err != nil { // other kinds of intermittent errors can occur, e.g, io.ErrShortWrite - logger.Error().Err(err).Msg("copying data into http response") + logger.Panic().Err(err).Msg("copying data into http response") } } }