@@ -265,7 +265,7 @@ func (l *Loader) updates() {
265265func (l * Loader ) createPrefixFilters (c config.ServerConfig ) (* prefixFilter , * prefixFilter ) {
266266 prefixDeny := newPrefixFilter (strToIPNet (c .PrefixDeny ))
267267 prefixAllow := newPrefixFilter (strToIPNet (c .PrefixAllow ))
268- l .Infof (l .ctx , "loaded [%v] deny filters and [%v] allow filters" , len (c .PrefixDeny ), len (c .PrefixAllow ))
268+ l .Debugf (l .ctx , "loaded [%v] deny filters and [%v] allow filters" , len (c .PrefixDeny ), len (c .PrefixAllow ))
269269 return prefixDeny , prefixAllow
270270}
271271
@@ -334,7 +334,7 @@ func (l Loader) build(c config.ServerConfig) []tq.SecretProvider {
334334 opts = append (opts , config .SetAAAAuthorizer (a ))
335335 } else {
336336 userAuthorizerUnassigned .Inc ()
337- l .Infof (l .ctx , "no authorizer available in scope [%v] for user [%v]" , provider .Name , u .Name )
337+ l .Errorf (l .ctx , "no authorizer available in scope [%v] for user [%v]" , provider .Name , u .Name )
338338 }
339339
340340 if u .Authenticator != nil {
@@ -350,7 +350,7 @@ func (l Loader) build(c config.ServerConfig) []tq.SecretProvider {
350350 opts = append (opts , config .SetAAAAuthenticator (a ))
351351 } else {
352352 userAuthenticatorUnassigned .Inc ()
353- l .Infof (l .ctx , "no authenticator assigned to authenticator type [%v] in scope [%v] on user [%v]" , u .Authenticator .Type , provider .Name , u .Name )
353+ l .Errorf (l .ctx , "no authenticator assigned to authenticator type [%v] in scope [%v] on user [%v]" , u .Authenticator .Type , provider .Name , u .Name )
354354 }
355355 }
356356 if u .Accounter != nil {
@@ -369,7 +369,6 @@ func (l Loader) build(c config.ServerConfig) []tq.SecretProvider {
369369 if len (users ) == 0 {
370370 l .Errorf (l .ctx , "no users associated to scope [%v]; skipping scope" , provider .Name )
371371 userScopeUnassigned .Inc ()
372- l .Errorf (l .ctx , "no users associated to secret config scope [%v]" , provider .Name )
373372 continue
374373 }
375374 handlerType := l .handlerTypes [provider .Handler .Type ]
@@ -409,20 +408,20 @@ func (l Loader) reduceAuthenticatorAccounterFromGroups(scope string, u *config.U
409408 userOverrideAccounter .Inc ()
410409 }
411410 if u .Authenticator != nil && u .Accounter != nil {
412- l .Infof (l .ctx , "skipping authenticator and accounter for scope [%v] user [%v], both are already set at the user level" , scope , u .Name )
411+ l .Debugf (l .ctx , "skipping authenticator and accounter for scope [%v] user [%v], both are already set at the user level" , scope , u .Name )
413412 return
414413 }
415414 for _ , g := range u .Groups {
416415 if g .Authenticator != nil {
417416 if u .Authenticator != nil {
418- l .Infof (l .ctx , "skipping authenticator for scope [%v] user [%v], it's already set at the user level" , scope , u .Name )
417+ l .Debugf (l .ctx , "skipping authenticator for scope [%v] user [%v], it's already set at the user level" , scope , u .Name )
419418 } else {
420419 u .Authenticator = g .Authenticator
421420 }
422421 }
423422 if g .Accounter != nil {
424423 if u .Accounter != nil {
425- l .Infof (l .ctx , "skipping accounter for scope [%v] user [%v], it's already set at the user level" , scope , u .Name )
424+ l .Debugf (l .ctx , "skipping accounter for scope [%v] user [%v], it's already set at the user level" , scope , u .Name )
426425 } else {
427426 u .Accounter = g .Accounter
428427 }
0 commit comments