@cryptotaxi247 / kubo / commits / 904be7c94

fix Read call in seccat

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Mar 7, 2018 at 18:54 UTC 904be7c94d6bf72a1c6ec44f2836bc8ad54797bd
1 file changed +1 -1
cmd/seccat/util.go
+1 -1
@@ -31,7 +31,7 @@ type logRW struct {
31
32 func (r *logRW) Read(buf []byte) (int, error) {
33 n, err := r.rw.Read(buf)
34 - if err == nil {
34 + if n > 0 {
35 log.Debugf("%s read: %v", r.n, buf)
36 }
37 return n, err