Skip to content

Commit 6e2f311

Browse files
bdehamerCopilot
andcommitted
Add info log when digest is cached as unknown
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3195680 commit 6e2f311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/controller/controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ func (c *Controller) recordContainer(ctx context.Context, pod *corev1.Pod, conta
494494
var noArtifactErr *deploymentrecord.NoArtifactError
495495
if errors.As(err, &noArtifactErr) {
496496
c.unknownArtifacts.Set(digest, true, unknownArtifactTTL)
497+
slog.Info("No artifact found, digest cached as unknown",
498+
"deployment_name", dn,
499+
"digest", digest,
500+
)
497501
return nil
498502
}
499503

0 commit comments

Comments
 (0)