multi: start updating various loggers to use the new v2 type

This commit is contained in:
Elle Mouton 2024-10-15 15:16:16 +02:00
parent a8da3e525b
commit 23602e017e
No known key found for this signature in database
GPG Key ID: D7D916376026F177
72 changed files with 140 additions and 114 deletions

View File

@ -1,7 +1,7 @@
package autopilot package autopilot
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chainntnfs package chainntnfs
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chainreg package chainreg
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chanacceptor package chanacceptor
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chanbackup package chanbackup
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chanfitness package chanfitness
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package channeldb package channeldb
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
mig "github.com/lightningnetwork/lnd/channeldb/migration" mig "github.com/lightningnetwork/lnd/channeldb/migration"
"github.com/lightningnetwork/lnd/channeldb/migration12" "github.com/lightningnetwork/lnd/channeldb/migration12"

View File

@ -1,6 +1,6 @@
package migration 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 // 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. // not perform any logging by default until a logger is set.

View File

@ -1,7 +1,7 @@
package migration12 package migration12
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration13 package migration13
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration16 package migration16
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration20 package migration20
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package // log is a logger that is initialized as disabled. This means the package

View File

@ -1,7 +1,7 @@
package migration24 package migration24
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration25 package migration25
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration26 package migration26
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration27 package migration27
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,6 +1,6 @@
package migration29 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 // 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. // not perform any logging by default until a logger is set.

View File

@ -1,7 +1,7 @@
package migration30 package migration30
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration31 package migration31
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration32 package migration32
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration33 package migration33
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration_01_to_11 package migration_01_to_11
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package channelnotifier package channelnotifier
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package cluster package cluster
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package contractcourt package contractcourt
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package discovery package discovery
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package funding package funding
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package graph package graph
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package hop package hop
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized with no output filters. This // log is a logger that is initialized with no output filters. This

View File

@ -1,7 +1,7 @@
package htlcswitch package htlcswitch
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/htlcswitch/hop" "github.com/lightningnetwork/lnd/htlcswitch/hop"
) )

View File

@ -1,7 +1,7 @@
package invoices package invoices
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package lncfg package lncfg
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package autopilotrpc package autopilotrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chainrpc package chainrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package devrpc package devrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package invoicesrpc package invoicesrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package neutrinorpc package neutrinorpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package peersrpc package peersrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package routerrpc package routerrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package signrpc package signrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package verrpc package verrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package walletrpc package walletrpc
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package btcwallet package btcwallet
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chancloser package chancloser
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chanfunding package chanfunding
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package lnwallet package lnwallet
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/btcsuite/btcwallet/chain" "github.com/btcsuite/btcwallet/chain"
btcwallet "github.com/btcsuite/btcwallet/wallet" btcwallet "github.com/btcsuite/btcwallet/wallet"
"github.com/btcsuite/btcwallet/wtxmgr" "github.com/btcsuite/btcwallet/wtxmgr"

View File

@ -1,7 +1,7 @@
package rpcwallet package rpcwallet
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

112
log.go
View File

@ -126,7 +126,7 @@ func SetupLoggers(root *build.SubLoggerManager, interceptor signal.Interceptor)
// placeholder lnd package loggers. // placeholder lnd package loggers.
for _, l := range lndPkgLoggers { for _, l := range lndPkgLoggers {
l.Logger = build.NewSubLogger(l.subsystem, genLogger) l.Logger = build.NewSubLogger(l.subsystem, genLogger)
SetV1SubLogger(root, l.subsystem, l.Logger) SetSubLogger(root, l.subsystem, l.Logger)
} }
// Initialize loggers from packages outside of `lnd` first. The // Initialize loggers from packages outside of `lnd` first. The
@ -144,56 +144,82 @@ func SetupLoggers(root *build.SubLoggerManager, interceptor signal.Interceptor)
signal.UseLogger(ltndLog) signal.UseLogger(ltndLog)
autopilot.UseLogger(atplLog) autopilot.UseLogger(atplLog)
AddV1SubLogger(root, "LNWL", interceptor, lnwallet.UseLogger) AddSubLogger(root, "LNWL", interceptor, lnwallet.UseLogger)
AddV1SubLogger(root, "DISC", interceptor, discovery.UseLogger) AddSubLogger(root, "DISC", interceptor, discovery.UseLogger)
AddV1SubLogger(root, "NTFN", interceptor, chainntnfs.UseLogger) AddSubLogger(root, "NTFN", interceptor, chainntnfs.UseLogger)
AddV1SubLogger(root, "CHDB", interceptor, channeldb.UseLogger) AddSubLogger(root, "CHDB", interceptor, channeldb.UseLogger)
AddV1SubLogger(root, "HSWC", interceptor, htlcswitch.UseLogger) AddSubLogger(root, "HSWC", interceptor, htlcswitch.UseLogger)
AddV1SubLogger(root, "CNCT", interceptor, contractcourt.UseLogger) AddSubLogger(root, "CNCT", interceptor, contractcourt.UseLogger)
AddV1SubLogger(root, "UTXN", interceptor, contractcourt.UseNurseryLogger) AddSubLogger(root, "UTXN", interceptor, contractcourt.UseNurseryLogger)
AddV1SubLogger(root, "BRAR", interceptor, contractcourt.UseBreachLogger) AddSubLogger(root, "BRAR", interceptor, contractcourt.UseBreachLogger)
AddV1SubLogger(root, "SPHX", interceptor, sphinx.UseLogger) AddV1SubLogger(root, "SPHX", interceptor, sphinx.UseLogger)
AddV1SubLogger(root, "SWPR", interceptor, sweep.UseLogger) AddSubLogger(root, "SWPR", interceptor, sweep.UseLogger)
AddV1SubLogger(root, "SGNR", interceptor, signrpc.UseLogger) AddSubLogger(root, "SGNR", interceptor, signrpc.UseLogger)
AddV1SubLogger(root, "WLKT", interceptor, walletrpc.UseLogger) AddSubLogger(root, "WLKT", interceptor, walletrpc.UseLogger)
AddV1SubLogger(root, "ARPC", interceptor, autopilotrpc.UseLogger) AddSubLogger(root, "ARPC", interceptor, autopilotrpc.UseLogger)
AddV1SubLogger(root, "NRPC", interceptor, neutrinorpc.UseLogger) AddSubLogger(root, "NRPC", interceptor, neutrinorpc.UseLogger)
AddV1SubLogger(root, "DRPC", interceptor, devrpc.UseLogger) AddSubLogger(root, "DRPC", interceptor, devrpc.UseLogger)
AddV1SubLogger(root, "INVC", interceptor, invoices.UseLogger) AddSubLogger(root, "INVC", interceptor, invoices.UseLogger)
AddV1SubLogger(root, "NANN", interceptor, netann.UseLogger) AddSubLogger(root, "NANN", interceptor, netann.UseLogger)
AddV1SubLogger(root, "WTWR", interceptor, watchtower.UseLogger) AddSubLogger(root, "WTWR", interceptor, watchtower.UseLogger)
AddV1SubLogger(root, "NTFR", interceptor, chainrpc.UseLogger) AddSubLogger(root, "NTFR", interceptor, chainrpc.UseLogger)
AddV1SubLogger(root, "IRPC", interceptor, invoicesrpc.UseLogger) AddSubLogger(root, "IRPC", interceptor, invoicesrpc.UseLogger)
AddV1SubLogger(root, "CHNF", interceptor, channelnotifier.UseLogger) AddSubLogger(root, "CHNF", interceptor, channelnotifier.UseLogger)
AddV1SubLogger(root, "CHBU", interceptor, chanbackup.UseLogger) AddSubLogger(root, "CHBU", interceptor, chanbackup.UseLogger)
AddV1SubLogger(root, "PROM", interceptor, monitoring.UseLogger) AddSubLogger(root, "PROM", interceptor, monitoring.UseLogger)
AddV1SubLogger(root, "WTCL", interceptor, wtclient.UseLogger) AddSubLogger(root, "WTCL", interceptor, wtclient.UseLogger)
AddV1SubLogger(root, "PRNF", interceptor, peernotifier.UseLogger) AddSubLogger(root, "PRNF", interceptor, peernotifier.UseLogger)
AddV1SubLogger(root, "CHFD", interceptor, chanfunding.UseLogger) AddSubLogger(root, "CHFD", interceptor, chanfunding.UseLogger)
AddV1SubLogger(root, "PEER", interceptor, peer.UseLogger) AddSubLogger(root, "PEER", interceptor, peer.UseLogger)
AddV1SubLogger(root, "CHCL", interceptor, chancloser.UseLogger) AddSubLogger(root, "CHCL", interceptor, chancloser.UseLogger)
AddV1SubLogger(root, routing.Subsystem, interceptor, routing.UseLogger) AddSubLogger(root, routing.Subsystem, interceptor, routing.UseLogger)
AddV1SubLogger(root, routerrpc.Subsystem, interceptor, routerrpc.UseLogger) AddSubLogger(root, routerrpc.Subsystem, interceptor, routerrpc.UseLogger)
AddV1SubLogger(root, chanfitness.Subsystem, interceptor, chanfitness.UseLogger) AddSubLogger(root, chanfitness.Subsystem, interceptor, chanfitness.UseLogger)
AddV1SubLogger(root, verrpc.Subsystem, interceptor, verrpc.UseLogger) AddSubLogger(root, verrpc.Subsystem, interceptor, verrpc.UseLogger)
AddV1SubLogger(root, healthcheck.Subsystem, interceptor, healthcheck.UseLogger) AddV1SubLogger(root, healthcheck.Subsystem, interceptor, healthcheck.UseLogger)
AddV1SubLogger(root, chainreg.Subsystem, interceptor, chainreg.UseLogger) AddSubLogger(root, chainreg.Subsystem, interceptor, chainreg.UseLogger)
AddV1SubLogger(root, chanacceptor.Subsystem, interceptor, chanacceptor.UseLogger) AddSubLogger(root, chanacceptor.Subsystem, interceptor, chanacceptor.UseLogger)
AddV1SubLogger(root, funding.Subsystem, interceptor, funding.UseLogger) AddSubLogger(root, funding.Subsystem, interceptor, funding.UseLogger)
AddV1SubLogger(root, cluster.Subsystem, interceptor, cluster.UseLogger) AddSubLogger(root, cluster.Subsystem, interceptor, cluster.UseLogger)
AddV1SubLogger(root, rpcperms.Subsystem, interceptor, rpcperms.UseLogger) AddSubLogger(root, rpcperms.Subsystem, interceptor, rpcperms.UseLogger)
AddV1SubLogger(root, tor.Subsystem, interceptor, tor.UseLogger) AddV1SubLogger(root, tor.Subsystem, interceptor, tor.UseLogger)
AddV1SubLogger(root, btcwallet.Subsystem, interceptor, btcwallet.UseLogger) AddSubLogger(root, btcwallet.Subsystem, interceptor, btcwallet.UseLogger)
AddV1SubLogger(root, rpcwallet.Subsystem, interceptor, rpcwallet.UseLogger) AddSubLogger(root, rpcwallet.Subsystem, interceptor, rpcwallet.UseLogger)
AddV1SubLogger(root, peersrpc.Subsystem, interceptor, peersrpc.UseLogger) AddSubLogger(root, peersrpc.Subsystem, interceptor, peersrpc.UseLogger)
AddV1SubLogger(root, graph.Subsystem, interceptor, graph.UseLogger) AddSubLogger(root, graph.Subsystem, interceptor, graph.UseLogger)
AddV1SubLogger(root, lncfg.Subsystem, interceptor, lncfg.UseLogger) AddSubLogger(root, lncfg.Subsystem, interceptor, lncfg.UseLogger)
AddV1SubLogger( AddSubLogger(
root, blindedpath.Subsystem, interceptor, blindedpath.UseLogger, root, blindedpath.Subsystem, interceptor, blindedpath.UseLogger,
) )
} }
// AddSubLogger is a helper method to conveniently create and register the
// logger of one or more sub systems.
func AddSubLogger(root *build.SubLoggerManager, subsystem string,
interceptor signal.Interceptor, useLoggers ...func(btclog.Logger)) {
// genSubLogger will return a callback for creating a logger instance,
// which we will give to the root logger.
genLogger := genSubLogger(root, interceptor)
// Create and register just a single logger to prevent them from
// overwriting each other internally.
logger := build.NewSubLogger(subsystem, genLogger)
SetSubLogger(root, subsystem, logger, useLoggers...)
}
// SetSubLogger is a helper method to conveniently register the logger of a
// sub system.
func SetSubLogger(root *build.SubLoggerManager, subsystem string,
logger btclog.Logger, useLoggers ...func(btclog.Logger)) {
root.RegisterSubLogger(subsystem, logger)
for _, useLogger := range useLoggers {
useLogger(logger)
}
}
// AddV1SubLogger is a helper method to conveniently create and register the // AddV1SubLogger is a helper method to conveniently create and register the
// logger of one or more sub systems. // logger of one or more sub systems.
func AddV1SubLogger(root *build.SubLoggerManager, subsystem string, func AddV1SubLogger(root *build.SubLoggerManager, subsystem string,

View File

@ -1,7 +1,7 @@
package monitoring package monitoring
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package netann package netann
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package peer package peer
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package peernotifier package peernotifier
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package blindedpath package blindedpath
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package chainview package chainview
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package routing package routing
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/routing/chainview" "github.com/lightningnetwork/lnd/routing/chainview"
) )

View File

@ -7,7 +7,7 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
"github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/macaroons" "github.com/lightningnetwork/lnd/macaroons"

View File

@ -1,7 +1,7 @@
package rpcperms package rpcperms
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,6 +1,6 @@
package signal package signal
import "github.com/btcsuite/btclog" import "github.com/btcsuite/btclog/v2"
// log is a logger that is initialized with no output filters. This // log is a logger that is initialized with no output filters. This
// means the package will not perform any logging by default until the caller // means the package will not perform any logging by default until the caller

View File

@ -1,7 +1,7 @@
package sweep package sweep
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package watchtower package watchtower
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/watchtower/lookout" "github.com/lightningnetwork/lnd/watchtower/lookout"
"github.com/lightningnetwork/lnd/watchtower/wtclient" "github.com/lightningnetwork/lnd/watchtower/wtclient"

View File

@ -1,7 +1,7 @@
package lookout package lookout
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package wtclient package wtclient
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )

View File

@ -1,7 +1,7 @@
package wtdb package wtdb
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration1" "github.com/lightningnetwork/lnd/watchtower/wtdb/migration1"
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration2" "github.com/lightningnetwork/lnd/watchtower/wtdb/migration2"

View File

@ -1,7 +1,7 @@
package migration1 package migration1
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration2 package migration2
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration3 package migration3
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration4 package migration4
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration5 package migration5
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration6 package migration6
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration7 package migration7
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package migration8 package migration8
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
) )
// log is a logger that is initialized as disabled. This means the package will // log is a logger that is initialized as disabled. This means the package will

View File

@ -1,7 +1,7 @@
package wtserver package wtserver
import ( import (
"github.com/btcsuite/btclog" "github.com/btcsuite/btclog/v2"
"github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/build"
) )