From 569c35da20de30f5435393aef471eb3ca856ecf9 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Tue, 25 Jun 2024 01:10:12 -0300 Subject: [PATCH] sweepbatcher: enable all logs in tests --- sweepbatcher/sweep_batcher_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sweepbatcher/sweep_batcher_test.go b/sweepbatcher/sweep_batcher_test.go index f10ede6..dcbde18 100644 --- a/sweepbatcher/sweep_batcher_test.go +++ b/sweepbatcher/sweep_batcher_test.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "os" "sync" "testing" "time" @@ -12,6 +13,7 @@ import ( "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" + "github.com/btcsuite/btclog" "github.com/lightninglabs/loop/loopdb" "github.com/lightninglabs/loop/test" "github.com/lightninglabs/loop/utils" @@ -2256,6 +2258,10 @@ func (s *loopdbStore) AssertLoopOutStored() { func runTests(t *testing.T, testFn func(t *testing.T, store testStore, batcherStore testBatcherStore)) { + logger := btclog.NewBackend(os.Stdout).Logger("SWEEP") + logger.SetLevel(btclog.LevelTrace) + UseLogger(logger) + t.Run("mocks", func(t *testing.T) { store := loopdb.NewStoreMock(t) batcherStore := NewStoreMock()