Skip to content

Commit

Permalink
Merge pull request #24 from SberMarket-Tech/remove-old-logger
Browse files Browse the repository at this point in the history
Remove old Logger
  • Loading branch information
hageshtrem authored Feb 1, 2024
2 parents 32872e7 + 36ac0bc commit 740239f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion dead_pool_reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (r *deadPoolReaper) cleanStaleLockInfo(poolID string, jobTypes []string) er
return err
}
if len(negativeLocks) > 0 {
Logger.Printf("Reaper: negative locks: %v", negativeLocks)
r.logger.Info("Reaper: negative locks", slog.Any("keys", negativeLocks))
}

return nil
Expand Down
3 changes: 0 additions & 3 deletions worker_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"fmt"
"log"
"reflect"
"testing"
"time"
Expand Down Expand Up @@ -227,8 +226,6 @@ func TestWorkerPoolTracing(t *testing.T) {
ctx, span := tp.Tracer("").Start(context.Background(), "enqueue")
span.End()

Logger = log.Default()

enqueuer := NewEnqueuer(ns, pool)

_, err := enqueuer.EnqueueContext(ctx, jobName, Q{"a": "b"})
Expand Down
3 changes: 0 additions & 3 deletions worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package work
import (
"fmt"
"io"
"log"
"strconv"
"sync"
"sync/atomic"
Expand Down Expand Up @@ -636,8 +635,6 @@ func TestWorkerPoolStop(t *testing.T) {
}

func TestWorkerRetryRemoveFromInProgress(t *testing.T) {
Logger = log.Default()

originPool := newTestPool(":6379")
pool := newSwitchablePool(originPool)
ns := "work"
Expand Down

0 comments on commit 740239f

Please sign in to comment.