Skip to content

Commit

Permalink
fix(buildah): push-layers logs in buildah only in verbose mode
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed May 19, 2023
1 parent a96c012 commit f46abbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/container_backend/buildah_backend.go
Expand Up @@ -640,6 +640,8 @@ func (backend *BuildahBackend) Push(ctx context.Context, ref string, opts PushOp
var logWriter io.Writer
if logboek.Context(ctx).Info().IsAccepted() {
logWriter = logboek.Context(ctx).OutStream()
} else {
logWriter = io.Discard
}

return backend.buildah.Push(
Expand Down

0 comments on commit f46abbc

Please sign in to comment.