Skip to content

Commit a8bff99

Browse files
committed
Code review comments
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
1 parent cc3c51a commit a8bff99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/types/intoto/intoto.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ func (it *BaseIntotoType) CreateProposedEntry(ctx context.Context, version strin
8282
}
8383
ei, err := it.VersionedUnmarshal(nil, v)
8484
if err != nil {
85-
log.Logger.Errorf("fetching Intoto version (%v) implementation: %w", v, err)
85+
log.ContextLogger(ctx).Errorf("fetching Intoto version (%v) implementation: %w", v, err)
8686
continue
8787
}
8888
versionedPE, err := ei.CreateFromArtifactProperties(ctx, props)
8989
if err != nil {
90-
log.Logger.Errorf("error creating Intoto entry of version (%v): %w", v, err)
90+
log.ContextLogger(ctx).Errorf("error creating Intoto entry of version (%v): %w", v, err)
9191
continue
9292
}
9393
next.next = &ProposedIntotoEntryIterator{versionedPE, nil}

0 commit comments

Comments
 (0)