Refactor db package logging
This commit is contained in:
@@ -2,6 +2,7 @@ package db
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -12,7 +13,7 @@ func TestQueries(t *testing.T) {
|
||||
)
|
||||
defer db.Close()
|
||||
|
||||
if err := db.ApplySchema(ctx, nil); err != nil {
|
||||
if err := db.ApplySchema(ctx, slog.Default()); err != nil {
|
||||
t.Fatalf("ApplySchema: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user