Merge pull request #16800 from duglin/buildCache
Add useful info to builder cache logrus.Debug Upstream-commit: ec05d93c16d6955e62285e82373da3aac9f44025 Component: engine
This commit is contained in:
@ -481,13 +481,13 @@ func (b *Builder) probeCache() (bool, error) {
|
||||
return false, err
|
||||
}
|
||||
if len(cache) == 0 {
|
||||
logrus.Debugf("[BUILDER] Cache miss")
|
||||
logrus.Debugf("[BUILDER] Cache miss: %s", b.runConfig.Cmd)
|
||||
b.cacheBusted = true
|
||||
return false, nil
|
||||
}
|
||||
|
||||
fmt.Fprintf(b.Stdout, " ---> Using cache\n")
|
||||
logrus.Debugf("[BUILDER] Use cached version")
|
||||
logrus.Debugf("[BUILDER] Use cached version: %s", b.runConfig.Cmd)
|
||||
b.image = string(cache)
|
||||
|
||||
// TODO: remove once Commit can take a tag parameter.
|
||||
|
||||
Reference in New Issue
Block a user