refactor: replace logrus with log/slog

This commit is contained in:
rramiachraf
2024-05-02 21:29:50 +01:00
parent 56c745d6f5
commit c940b4a2cd
18 changed files with 120 additions and 70 deletions

View File

@ -4,9 +4,10 @@ import (
"mime"
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/sirupsen/logrus"
"github.com/rramiachraf/dumb/utils"
)
func TestImageProxy(t *testing.T) {
@ -18,7 +19,7 @@ func TestImageProxy(t *testing.T) {
}
rr := httptest.NewRecorder()
l := logrus.New()
l := utils.NewLogger(os.Stdout)
m := New(l)
m.ServeHTTP(rr, r)