Merge pull request #5202 from wzshiming/fix/dgst-debug

Change dgst to digest in debug
This commit is contained in:
Michael Crosby
2021-03-18 11:54:44 -04:00
committed by GitHub
4 changed files with 16 additions and 13 deletions

View File

@@ -81,7 +81,10 @@ var pruneReferencesCommand = cli.Command{
for k := range info.Labels {
if isLayerLabel(k) {
log.G(ctx).WithField("dgst", info.Digest).WithField("label", k).Debug("Removing label")
log.G(ctx).WithFields(logrus.Fields{
"digest": info.Digest,
"label": k,
}).Debug("Removing label")
if dryRun {
continue
}