mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 14:47:38 +01:00
Just log the signature not found error in debug mode (#11529)
Fixes #11510, just log the signature not found error in debug mode when deleting artifacts Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
1b2efac156
commit
8fb46d4bc7
@ -90,7 +90,7 @@ func GetTargets(notaryEndpoint string, username string, fqRepo string) ([]model2
|
||||
}
|
||||
targets, err := notaryRepo.ListTargets(data.CanonicalTargetsRole)
|
||||
if _, ok := err.(client.ErrRepositoryNotExist); ok {
|
||||
log.Errorf("Repository not exist, repo: %s, error: %v, returning empty signature", fqRepo, err)
|
||||
log.Debugf("Repository not exist, repo: %s, error: %v, returning empty signature", fqRepo, err)
|
||||
return res, nil
|
||||
} else if err != nil {
|
||||
return res, err
|
||||
|
Loading…
Reference in New Issue
Block a user