summaryrefslogtreecommitdiff
path: root/internal/oauth/tokenstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/oauth/tokenstore.go')
-rw-r--r--internal/oauth/tokenstore.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/oauth/tokenstore.go b/internal/oauth/tokenstore.go
index 5250e22b7..25946c212 100644
--- a/internal/oauth/tokenstore.go
+++ b/internal/oauth/tokenstore.go
@@ -24,10 +24,10 @@ import (
"fmt"
"time"
- "github.com/sirupsen/logrus"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/id"
+ "github.com/superseriousbusiness/gotosocial/internal/log"
"github.com/superseriousbusiness/oauth2/v4"
"github.com/superseriousbusiness/oauth2/v4/models"
)
@@ -53,12 +53,12 @@ func newTokenStore(ctx context.Context, db db.Basic) oauth2.TokenStore {
for {
select {
case <-ctx.Done():
- logrus.Info("breaking cleanloop")
+ log.Info("breaking cleanloop")
break cleanloop
case <-time.After(1 * time.Minute):
- logrus.Trace("sweeping out old oauth entries broom broom")
+ log.Trace("sweeping out old oauth entries broom broom")
if err := ts.sweep(ctx); err != nil {
- logrus.Errorf("error while sweeping oauth entries: %s", err)
+ log.Errorf("error while sweeping oauth entries: %s", err)
}
}
}