Skip to content

Commit

Permalink
fix Read call in seccat
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <[email protected]>
  • Loading branch information
Stebalien authored and Kubuxu committed Mar 9, 2018
1 parent 8b523be commit ffd56a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/seccat/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffd56a1

Please sign in to comment.