mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
contractcourt: add verbose logging in resolvers
We now put the outpoint in the resolvers's logging so it's easier to debug.
This commit is contained in:
@@ -120,8 +120,10 @@ func newContractResolverKit(cfg ResolverConfig) *contractResolverKit {
|
||||
}
|
||||
|
||||
// initLogger initializes the resolver-specific logger.
|
||||
func (r *contractResolverKit) initLogger(resolver ContractResolver) {
|
||||
logPrefix := fmt.Sprintf("%T(%v):", resolver, r.ChanPoint)
|
||||
func (r *contractResolverKit) initLogger(prefix string) {
|
||||
logPrefix := fmt.Sprintf("ChannelArbitrator(%v): %s:", r.ChanPoint,
|
||||
prefix)
|
||||
|
||||
r.log = log.WithPrefix(logPrefix)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user