Skip to content

Commit

Permalink
multi: start updating various loggers to use the new v2 type
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Oct 22, 2024
1 parent a8da3e5 commit 23602e0
Show file tree
Hide file tree
Showing 72 changed files with 141 additions and 115 deletions.
2 changes: 1 addition & 1 deletion autopilot/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package autopilot

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion chainntnfs/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chainntnfs

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion chainreg/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chainreg

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion chanacceptor/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chanacceptor

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion chanbackup/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chanbackup

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion chanfitness/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chanfitness

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion channeldb/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package channeldb

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
mig "github.com/lightningnetwork/lnd/channeldb/migration"
"github.com/lightningnetwork/lnd/channeldb/migration12"
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration/log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package migration

import "github.com/btcsuite/btclog"
import "github.com/btcsuite/btclog/v2"

// log is a logger that is initialized as disabled. This means the package will
// not perform any logging by default until a logger is set.
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration12/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration12

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration13/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration13

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration16/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration16

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration20/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration20

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration24/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration24

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration25/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration25

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration26/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration26

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration27/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration27

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration29/log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package migration29

import "github.com/btcsuite/btclog"
import "github.com/btcsuite/btclog/v2"

// log is a logger that is initialized as disabled. This means the package will
// not perform any logging by default until a logger is set.
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration30/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration30

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration31/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration31

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration32/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration32

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration33/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration33

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channeldb/migration_01_to_11/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package migration_01_to_11

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized as disabled. This means the package will
Expand Down
2 changes: 1 addition & 1 deletion channelnotifier/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package channelnotifier

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion cluster/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cluster

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion contractcourt/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package contractcourt

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion discovery/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package discovery

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion funding/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package funding

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion graph/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package graph

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion htlcswitch/hop/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package hop

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
)

// log is a logger that is initialized with no output filters. This
Expand Down
2 changes: 1 addition & 1 deletion htlcswitch/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package htlcswitch

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/htlcswitch/hop"
)
Expand Down
2 changes: 1 addition & 1 deletion invoices/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package invoices

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lncfg/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lncfg

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/autopilotrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package autopilotrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/chainrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chainrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/devrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package devrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/invoicesrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package invoicesrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/neutrinorpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package neutrinorpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/peersrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package peersrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/routerrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package routerrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/signrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package signrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/verrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package verrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnrpc/walletrpc/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package walletrpc

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnwallet/btcwallet/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package btcwallet

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
2 changes: 1 addition & 1 deletion lnwallet/chancloser/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package chancloser

import (
"github.com/btcsuite/btclog"
"github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build"
)

Expand Down
Loading

0 comments on commit 23602e0

Please sign in to comment.