Change dgst to digest in debug

Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
This commit is contained in:
Shiming Zhang
2021-03-15 16:44:11 +08:00
parent 6b410ba41f
commit 766e7953ab
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
}