Skip to content

Commit

Permalink
fix: change error to warning on findLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
k-matsuzawa committed Jan 15, 2024
1 parent eb460a4 commit 70a99da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/pkcs11/pkcs11.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (p *pkcs11Api) FindKeyByLabel(
// success
case 0:
err = errors.New("target is empty")
logError(ctx, "FindKeyByLabel", err)
logWarn(ctx, "FindKeyByLabel", err)
return 0, err
default:
err = errors.Wrapf(ErrLabelNotFound, "target is many, %d", len(handles))
Expand Down

0 comments on commit 70a99da

Please sign in to comment.