summaryrefslogtreecommitdiff
path: root/internal/api/client/auth/middleware.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/auth/middleware.go')
-rw-r--r--internal/api/client/auth/middleware.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/api/client/auth/middleware.go b/internal/api/client/auth/middleware.go
index 3599c7048..1b84458b0 100644
--- a/internal/api/client/auth/middleware.go
+++ b/internal/api/client/auth/middleware.go
@@ -20,6 +20,7 @@ package auth
import (
"github.com/gin-gonic/gin"
+ "github.com/sirupsen/logrus"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/oauth"
@@ -31,7 +32,7 @@ import (
// If user or account can't be found, then the handler won't *fail*, in case the server wants to allow
// public requests that don't have a Bearer token set (eg., for public instance information and so on).
func (m *Module) OauthTokenMiddleware(c *gin.Context) {
- l := m.log.WithField("func", "OauthTokenMiddleware")
+ l := logrus.WithField("func", "OauthTokenMiddleware")
l.Trace("entering OauthTokenMiddleware")
ti, err := m.server.ValidationBearerToken(c.Copy().Request)