Skip to content

Commit

Permalink
Not using stdout directly for logging (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-kabala committed Aug 21, 2023
1 parent 9748b1e commit e3fdd7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/runtimes/docker/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"context"
"fmt"
"io"
"os"

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
Expand Down Expand Up @@ -117,7 +116,7 @@ func pullImage(ctx context.Context, docker client.APIClient, image string) error
// in debug mode (--verbose flag set), output pull progress
var writer io.Writer = io.Discard
if l.Log().GetLevel() == logrus.DebugLevel {
writer = os.Stdout
writer = l.Log().Out
}
_, err = io.Copy(writer, resp)
if err != nil {
Expand Down

0 comments on commit e3fdd7f

Please sign in to comment.