Skip to content

Commit 7a61d5e

Browse files
committed
loopout_test: enable logging in sweepbatcher
1 parent 026cf0d commit 7a61d5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

loopout_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import (
44
"context"
55
"errors"
66
"math"
7+
"os"
78
"testing"
89
"time"
910

1011
"github.com/btcsuite/btcd/blockchain"
1112
"github.com/btcsuite/btcd/btcec/v2"
1213
"github.com/btcsuite/btcd/btcutil"
1314
"github.com/btcsuite/btcd/wire"
15+
"github.com/btcsuite/btclog"
1416
"github.com/lightninglabs/lndclient"
1517
"github.com/lightninglabs/loop/loopdb"
1618
"github.com/lightninglabs/loop/sweep"
@@ -255,6 +257,11 @@ func TestCustomSweepConfTarget(t *testing.T) {
255257
func testCustomSweepConfTarget(t *testing.T) {
256258
defer test.Guard(t)()
257259

260+
// Setup logger for sweepbatcher.
261+
logger := btclog.NewBackend(os.Stdout).Logger("SWEEP")
262+
logger.SetLevel(btclog.LevelTrace)
263+
sweepbatcher.UseLogger(logger)
264+
258265
lnd := test.NewMockLnd()
259266
ctx := test.NewContext(t, lnd)
260267
server := newServerMock(lnd)

0 commit comments

Comments
 (0)