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
commit 969b3d638b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}

View File

@ -55,7 +55,7 @@ func (s *fsApplier) Apply(ctx context.Context, desc ocispec.Descriptor, mounts [
if err == nil {
log.G(ctx).WithFields(logrus.Fields{
"d": time.Since(t1),
"dgst": desc.Digest,
"digest": desc.Digest,
"size": desc.Size,
"media": desc.MediaType,
}).Debugf("diff applied")

View File

@ -101,7 +101,7 @@ func (s windowsLcowDiff) Apply(ctx context.Context, desc ocispec.Descriptor, mou
if err == nil {
log.G(ctx).WithFields(logrus.Fields{
"d": time.Since(t1),
"dgst": desc.Digest,
"digest": desc.Digest,
"size": desc.Size,
"media": desc.MediaType,
}).Debugf("diff applied")

View File

@ -91,7 +91,7 @@ func (s windowsDiff) Apply(ctx context.Context, desc ocispec.Descriptor, mounts
if err == nil {
log.G(ctx).WithFields(logrus.Fields{
"d": time.Since(t1),
"dgst": desc.Digest,
"digest": desc.Digest,
"size": desc.Size,
"media": desc.MediaType,
}).Debugf("diff applied")