added logging to the http PB
This commit is contained in:
parent
16b0cad836
commit
43281eea6f
|
@ -121,6 +121,8 @@ func (p *Patchsets) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest)
|
||||||
i, err := w.Write(data)
|
i, err := w.Write(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
reqPB.Errors = append(reqPB.Errors, log.Sprintf("i=%d %v", i, err))
|
reqPB.Errors = append(reqPB.Errors, log.Sprintf("i=%d %v", i, err))
|
||||||
|
} else {
|
||||||
|
reqPB.Errors = append(reqPB.Errors, log.Sprintf("sent %d bytes back to client ok", i))
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue