audit errors and warnings.

This commit is contained in:
Miroslav Šedivý
2021-09-01 23:10:06 +02:00
parent 49c48b3200
commit c2fe224562
7 changed files with 20 additions and 22 deletions

View File

@ -32,9 +32,7 @@ func HttpJsonResponse(w http.ResponseWriter, status int, res interface{}) {
w.WriteHeader(status)
if err := json.NewEncoder(w).Encode(res); err != nil {
log.Warn().Err(err).
Str("module", "http").
Msg("failed writing json error response")
log.Err(err).Str("module", "http").Msg("sending http json response failed")
}
}