Skip to content

Commit

Permalink
Merge pull request #3663 from rhatdan/error
Browse files Browse the repository at this point in the history
Wire logger through to config
  • Loading branch information
openshift-merge-robot committed Dec 3, 2021
2 parents 080d839 + cc4149b commit de86fab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildah.go
Expand Up @@ -271,6 +271,8 @@ type BuilderOptions struct {
// to store copies of layer blobs that we pull down, if any. It should
// already exist.
BlobDirectory string
// Logger is the logrus logger to write log messages with
Logger *logrus.Logger `json:"-"`
// Mount signals to NewBuilder() that the container should be mounted
// immediately.
Mount bool
Expand Down
1 change: 1 addition & 0 deletions imagebuildah/stage_executor.go
Expand Up @@ -558,6 +558,7 @@ func (s *StageExecutor) prepare(ctx context.Context, from string, initializeIBCo
MaxPullRetries: s.executor.maxPullPushRetries,
PullRetryDelay: s.executor.retryPullPushDelay,
OciDecryptConfig: s.executor.ociDecryptConfig,
Logger: s.executor.logger,
}

builder, err = buildah.NewBuilder(ctx, s.executor.store, builderOptions)
Expand Down
1 change: 1 addition & 0 deletions new.go
Expand Up @@ -290,6 +290,7 @@ func newBuilder(ctx context.Context, store storage.Store, options BuilderOptions
Format: options.Format,
TempVolumes: map[string]bool{},
Devices: options.Devices,
Logger: options.Logger,
}

if options.Mount {
Expand Down

0 comments on commit de86fab

Please sign in to comment.