From 49d88e92ed25cc1996ce504d6f2b7de4da08da0d Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Mon, 25 Jul 2022 11:32:00 -0700 Subject: [PATCH] Do not debug log read/write buffers in lisafs. These logs are not helpful and just make logs very noisy. PiperOrigin-RevId: 463136631 --- pkg/lisafs/message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/lisafs/message.go b/pkg/lisafs/message.go index 9ffe755ee..e539d55cd 100644 --- a/pkg/lisafs/message.go +++ b/pkg/lisafs/message.go @@ -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.