fix: prevent logging openid provider errors twice

This commit is contained in:
kolaente 2022-07-07 15:47:37 +02:00
parent 4429ba2da1
commit 25ffa1bc2e
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -63,6 +63,7 @@ func GetAllProviders() (providers []*Provider, err error) {
if err != nil { if err != nil {
if provider != nil { if provider != nil {
log.Errorf("Error while getting openid provider %s: %s", provider.Name, err) log.Errorf("Error while getting openid provider %s: %s", provider.Name, err)
continue
} }
log.Errorf("Error while getting openid provider: %s", err) log.Errorf("Error while getting openid provider: %s", err)
continue continue