Use infra/log instead of slog in pkg/storage/unified (#114292)

Use infra/log instead of slog. Use log.FromContext to add contextual info to log messages.
This commit is contained in:
Peter Štibraný
2025-11-21 14:38:09 +01:00
committed by GitHub
parent c0f6d90971
commit def4c644ec
8 changed files with 40 additions and 49 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"errors"
"log/slog"
"net/http"
"strings"
"sync"
@@ -581,7 +580,7 @@ func newTestServerWithQueue(t *testing.T, maxSizePerTenant int, numWorkers int)
MaxRetries: 2,
MinBackoff: 10 * time.Millisecond,
},
log: slog.Default(),
log: log.NewNopLogger(),
}
return s, q
}
@@ -589,7 +588,7 @@ func newTestServerWithQueue(t *testing.T, maxSizePerTenant int, numWorkers int)
func TestArtificialDelayAfterSuccessfulOperation(t *testing.T) {
s := &server{
artificialSuccessfulWriteDelay: 1 * time.Millisecond,
log: slog.Default(),
log: log.NewNopLogger(),
}
check := func(t *testing.T, expectedSleep bool, res responseWithErrorResult, err error) {