Skip to content

Commit 569c35d

Browse files
committed
sweepbatcher: enable all logs in tests
1 parent aa6d748 commit 569c35d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sweepbatcher/sweep_batcher_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"os"
78
"sync"
89
"testing"
910
"time"
@@ -12,6 +13,7 @@ import (
1213
"github.com/btcsuite/btcd/btcutil"
1314
"github.com/btcsuite/btcd/chaincfg/chainhash"
1415
"github.com/btcsuite/btcd/wire"
16+
"github.com/btcsuite/btclog"
1517
"github.com/lightninglabs/loop/loopdb"
1618
"github.com/lightninglabs/loop/test"
1719
"github.com/lightninglabs/loop/utils"
@@ -2256,6 +2258,10 @@ func (s *loopdbStore) AssertLoopOutStored() {
22562258
func runTests(t *testing.T, testFn func(t *testing.T, store testStore,
22572259
batcherStore testBatcherStore)) {
22582260

2261+
logger := btclog.NewBackend(os.Stdout).Logger("SWEEP")
2262+
logger.SetLevel(btclog.LevelTrace)
2263+
UseLogger(logger)
2264+
22592265
t.Run("mocks", func(t *testing.T) {
22602266
store := loopdb.NewStoreMock(t)
22612267
batcherStore := NewStoreMock()

0 commit comments

Comments
 (0)