refactor(logging): use slog instead of logrus (#501)

Everything uses slog now and the logger is part of every struct
This commit is contained in:
Alexis Couvreur
2025-02-02 20:01:51 -08:00
committed by GitHub
parent f29b13a55a
commit 8844a36e4a
32 changed files with 445 additions and 453 deletions

View File

@@ -2,6 +2,7 @@ package api
import (
"github.com/gin-gonic/gin"
"github.com/neilotoole/slogt"
"github.com/sablierapp/sablier/app/http/routes"
"github.com/sablierapp/sablier/app/sessions/sessionstest"
"github.com/sablierapp/sablier/app/theme"
@@ -17,7 +18,7 @@ func NewApiTest(t *testing.T) (app *gin.Engine, router *gin.RouterGroup, strateg
t.Helper()
gin.SetMode(gin.TestMode)
ctrl := gomock.NewController(t)
th, err := theme.New()
th, err := theme.New(slogt.New(t))
assert.NilError(t, err)
app = gin.New()