Log error instead of ignoring it

This commit is contained in:
Till Faelligen 2020-10-03 18:24:34 +02:00
parent dc8ed7e323
commit e03cc095fc

View file

@ -400,6 +400,7 @@ func AddHealthCheck(apiMux *mux.Router, dbConfig ...config.DatabaseOptions) {
FirstError: errMsg,
})
if err != nil {
logrus.WithError(err).Error("Unable to encode response")
resp.WriteHeader(http.StatusInternalServerError)
return
}