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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user