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:
Karl Persson
2023-10-10 16:30:20 +02:00
committed by GitHub
parent 9dd38de5c1
commit ceb6f8b409
2 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -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")