mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Fix validator message with warn (#5168)
This commit is contained in:
@@ -72,8 +72,8 @@ var (
|
|||||||
|
|
||||||
func NewValidator(issuer string, audienceList []string, keysLocation string, idpSignkeyRefreshEnabled bool) *Validator {
|
func NewValidator(issuer string, audienceList []string, keysLocation string, idpSignkeyRefreshEnabled bool) *Validator {
|
||||||
keys, err := getPemKeys(keysLocation)
|
keys, err := getPemKeys(keysLocation)
|
||||||
if err != nil {
|
if err != nil && !strings.Contains(keysLocation, "localhost") {
|
||||||
log.WithField("keysLocation", keysLocation).Errorf("could not get keys from location: %s", err)
|
log.WithField("keysLocation", keysLocation).Warnf("could not get keys from location: %s, it will try again on the next http request", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Validator{
|
return &Validator{
|
||||||
|
|||||||
Reference in New Issue
Block a user