func()

in http/common/logging/logging.go [203:215]


func (w *ResponseWriter) Write(b []byte) (int, error) {
    if w.StatusCode == 0 {
        w.StatusCode = http.StatusOK
    }
    if w.StatusCode >= http.StatusBadRequest {
        if w.Buf == nil {
            w.Buf = new(bytes.Buffer)
        }
        // Write only if status code indicates error
        w.Buf.Write(b)
    }
    return w.ResponseWriter.Write(b)
}