added logging to the http PB

This commit is contained in:
Jeff Carr 2025-09-07 21:38:29 -05:00
parent 16b0cad836
commit 43281eea6f
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ func (p *Patchsets) SendReply(w http.ResponseWriter, reqPB *httppb.HttpRequest)
i, err := w.Write(data)
if err != nil {
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
}