Skip to content

Commit

Permalink
refactor(cache messages): changed messages about missing Image and La…
Browse files Browse the repository at this point in the history
…yers in cache (aquasecurity#447)
  • Loading branch information
DmitriyLewen authored Apr 4, 2022
1 parent 3c984c3 commit d5a8649
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions artifact/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (a Artifact) Inspect(ctx context.Context) (types.ArtifactReference, error)

missingImageKey := imageKey
if missingImage {
log.Logger.Debugf("Missing image ID: %s", imageID)
log.Logger.Debugf("Missing image ID in cache: %s", imageID)
} else {
missingImageKey = ""
}
Expand Down Expand Up @@ -180,7 +180,6 @@ func (a Artifact) inspect(ctx context.Context, missingImage string, layerKeys []
}

if missingImage != "" {
log.Logger.Debugf("Missing image cache: %s", missingImage)
if err := a.inspectConfig(missingImage, osFound); err != nil {
return xerrors.Errorf("unable to analyze config: %w", err)
}
Expand All @@ -191,7 +190,7 @@ func (a Artifact) inspect(ctx context.Context, missingImage string, layerKeys []
}

func (a Artifact) inspectLayer(ctx context.Context, diffID string) (types.BlobInfo, error) {
log.Logger.Debugf("Missing diff ID: %s", diffID)
log.Logger.Debugf("Missing diff ID in cache: %s", diffID)

layerDigest, r, err := a.uncompressedLayer(diffID)
if err != nil {
Expand Down

0 comments on commit d5a8649

Please sign in to comment.