Do not debug log read/write buffers in lisafs.

These logs are not helpful and just make logs very noisy.

PiperOrigin-RevId: 463136631
This commit is contained in:
Ayush Ranjan
2022-07-25 11:35:24 -07:00
committed by gVisor bot
parent 64299b5b22
commit 49d88e92ed
+2 -2
View File
@@ -857,7 +857,7 @@ type PReadResp struct {
// String implements fmt.Stringer.String.
func (r *PReadResp) String() string {
return fmt.Sprintf("PReadResp{NumBytes: %d, Buf: %v}", r.NumBytes, r.Buf)
return fmt.Sprintf("PReadResp{NumBytes: %d, Buf: [...%d bytes...]}", r.NumBytes, len(r.Buf))
}
// SizeBytes implements marshal.Marshallable.SizeBytes.
@@ -894,7 +894,7 @@ type PWriteReq struct {
// String implements fmt.Stringer.String.
func (w *PWriteReq) String() string {
return fmt.Sprintf("PWriteReq{Offset: %d, FD: %d, NumBytes: %d, Buf: %v}", w.Offset, w.FD, w.NumBytes, w.Buf)
return fmt.Sprintf("PWriteReq{Offset: %d, FD: %d, NumBytes: %d, Buf: [...%d bytes...]}", w.Offset, w.FD, w.NumBytes, len(w.Buf))
}
// SizeBytes implements marshal.Marshallable.SizeBytes.