Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
"timeWriteBody": stats.Duration(tDone.Sub(w.writeTime)),
})
}
"timeWriteBody": stats.Duration(tDone.Sub(w.writeTime)),
})
}
+ respCode := w.WroteStatus()
+ if respCode == 0 {
+ respCode = http.StatusOK
+ }
lgr.WithFields(logrus.Fields{
lgr.WithFields(logrus.Fields{
- "respStatusCode": w.WroteStatus(),
- "respStatus": http.StatusText(w.WroteStatus()),
+ "respStatusCode": respCode,
+ "respStatus": http.StatusText(respCode),
"respBytes": w.WroteBodyBytes(),
}).Info("response")
}
"respBytes": w.WroteBodyBytes(),
}).Info("response")
}
}
func (w *responseWriter) WroteStatus() int {
}
func (w *responseWriter) WroteStatus() int {
- if w.wroteStatus == 0 {
- return http.StatusOK
- }