Skip to content

Commit

Permalink
loopout_test: enable logging in sweepbatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
starius committed Jul 15, 2024
1 parent 4bc257b commit fece888
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions loopout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import (
"context"
"errors"
"math"
"os"
"testing"
"time"

"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btclog"
"github.com/lightninglabs/lndclient"
"github.com/lightninglabs/loop/loopdb"
"github.com/lightninglabs/loop/sweep"
Expand Down Expand Up @@ -255,6 +257,11 @@ func TestCustomSweepConfTarget(t *testing.T) {
func testCustomSweepConfTarget(t *testing.T) {
defer test.Guard(t)()

// Setup logger for sweepbatcher.
logger := btclog.NewBackend(os.Stdout).Logger("SWEEP")
logger.SetLevel(btclog.LevelTrace)
sweepbatcher.UseLogger(logger)

lnd := test.NewMockLnd()
ctx := test.NewContext(t, lnd)
server := newServerMock(lnd)
Expand Down

0 comments on commit fece888

Please sign in to comment.