diff --git a/pkg/verifier/notation/notation.go b/pkg/verifier/notation/notation.go index 1735c0c87..5e8b2a0ab 100644 --- a/pkg/verifier/notation/notation.go +++ b/pkg/verifier/notation/notation.go @@ -24,6 +24,7 @@ import ( ratifyconfig "github.com/deislabs/ratify/config" re "github.com/deislabs/ratify/errors" + "github.com/deislabs/ratify/internal/logger" "github.com/deislabs/ratify/pkg/common" "github.com/deislabs/ratify/pkg/homedir" @@ -32,6 +33,7 @@ import ( "github.com/deislabs/ratify/pkg/verifier" "github.com/deislabs/ratify/pkg/verifier/config" "github.com/deislabs/ratify/pkg/verifier/factory" + "github.com/notaryproject/notation-go/log" _ "github.com/notaryproject/notation-core-go/signature/cose" // register COSE signature _ "github.com/notaryproject/notation-core-go/signature/jws" // register JWS signature @@ -163,6 +165,7 @@ func (v *notationPluginVerifier) verifySignature(ctx context.Context, subjectRef SignatureMediaType: mediaType, ArtifactReference: subjectRef, } + ctx = log.WithLogger(ctx, logger.GetLogger(ctx, logOpt)) return (*v.notationVerifier).Verify(ctx, subjectDesc, refBlob, opts) }