diff --git a/cmd/seccat/util.go b/cmd/seccat/util.go index c458f0231..d21883535 100644 --- a/cmd/seccat/util.go +++ b/cmd/seccat/util.go @@ -31,7 +31,7 @@ type logRW struct { func (r *logRW) Read(buf []byte) (int, error) { n, err := r.rw.Read(buf) - if err == nil { + if n > 0 { log.Debugf("%s read: %v", r.n, buf) } return n, err