Skip to content

Commit

Permalink
Reduce log noise during Write() (#152)
Browse files Browse the repository at this point in the history
* Reduce log noise during Write()

Signed-off-by: Kimmo Lehto <[email protected]>

* Does hidecommand mess up the upload?

Signed-off-by: Kimmo Lehto <[email protected]>

---------

Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke authored Jan 8, 2024
1 parent 6080bf9 commit 40275c2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/rigfs/posixfsys.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/alessio/shellescape"
"github.com/k0sproject/rig/exec"
"github.com/k0sproject/rig/log"
)

var (
Expand Down Expand Up @@ -163,8 +162,6 @@ func (f *PosixFile) Write(p []byte) (int, error) {
return 0, fmt.Errorf("%w: file %s is not open for writing", fs.ErrClosed, f.path)
}

log.Debugf("writing %d bytes to %s", len(p), f.path)

var written int
remaining := p
for written < len(p) {
Expand Down

0 comments on commit 40275c2

Please sign in to comment.