Skip to content

Commit

Permalink
use logrus for logs
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Jun 7, 2022
1 parent 27febb1 commit 10978e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/registry/common/heal/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ func TestHealClient_FindTest(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

log.EnableTracing(true)
logrus.SetLevel(logrus.TraceLevel)
nsmgrCtx, nsmgrCancel := context.WithCancel(ctx)
defer nsmgrCancel()

Expand Down Expand Up @@ -135,13 +133,13 @@ func TestHealClient_FindTest(t *testing.T) {

require.Eventually(t, func() bool {
r, err := nsRespStream.Recv()
log.FromContext(ctx).Infof("MY_INFO Recv returned %v, error: %v", r, err)
logrus.Infof("MY_INFO Recv returned %v, error: %v", r, err)
return err != nil
}, time.Millisecond*500, time.Millisecond*50)

require.Eventually(t, func() bool {
r, err := nseRespStream.Recv()
log.FromContext(ctx).Infof("MY_INFO Recv returned %v, error: %v", r, err)
logrus.Infof("MY_INFO Recv returned %v, error: %v", r, err)
return err != nil
}, time.Millisecond*500, time.Millisecond*50)
}

0 comments on commit 10978e4

Please sign in to comment.