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:
6 files changed
+44
-31
No files matched your search
@@ -88,7 +88,7 @@ func newCommitSweepResolver(res lnwallet.CommitOutputResolution,
|
||||
chanPoint: chanPoint,
|
||||
}
|
||||
|
||||
r.initLogger(r)
|
||||
r.initLogger(fmt.Sprintf("%T(%v)", r, r.commitResolution.SelfOutPoint))
|
||||
r.initReport()
|
||||
|
||||
return r
|
||||
@@ -484,7 +484,7 @@ func newCommitSweepResolverFromReader(r io.Reader, resCfg ResolverConfig) (
|
||||
// removed this, but keep in mind that this data may still be present in
|
||||
// the database.
|
||||
|
||||
c.initLogger(c)
|
||||
c.initLogger(fmt.Sprintf("%T(%v)", c, c.commitResolution.SelfOutPoint))
|
||||
c.initReport()
|
||||
|
||||
return c, nil
|
||||
|
||||
Reference in new issue
Block a user