1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Add useful info to builder cache logrus.Debug

Closes: #16790

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2015-10-06 05:43:51 -07:00
parent a6bbf16aa1
commit 4920d40093

View file

@ -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.