File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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) {
255257func 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 )
You can’t perform that action at this time.
0 commit comments