mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
Log error instead of ignoring it
This commit is contained in:
parent
dc8ed7e323
commit
e03cc095fc
|
|
@ -400,6 +400,7 @@ func AddHealthCheck(apiMux *mux.Router, dbConfig ...config.DatabaseOptions) {
|
||||||
FirstError: errMsg,
|
FirstError: errMsg,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
logrus.WithError(err).Error("Unable to encode response")
|
||||||
resp.WriteHeader(http.StatusInternalServerError)
|
resp.WriteHeader(http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue