Authn: error logs (#76264)
* Reduce to debug for session need rotation error * try to extract log level from error and fallback to warning
This commit is contained in:
@@ -3,7 +3,7 @@ package authn
|
||||
import "github.com/grafana/grafana/pkg/util/errutil"
|
||||
|
||||
var (
|
||||
ErrTokenNeedsRotation = errutil.Unauthorized("session.token.rotate")
|
||||
ErrTokenNeedsRotation = errutil.Unauthorized("session.token.rotate", errutil.WithLogLevel(errutil.LevelDebug))
|
||||
ErrUnsupportedClient = errutil.BadRequest("auth.client.unsupported")
|
||||
ErrClientNotConfigured = errutil.BadRequest("auth.client.notConfigured")
|
||||
ErrUnsupportedIdentity = errutil.NotImplemented("auth.identity.unsupported")
|
||||
|
||||
Reference in New Issue
Block a user