sweep: log tx label in GetSweepFee methods

Added argument 'label' to GetSweepFee and GetSweepFeeDetails. It is logged
together with expected weight, fee and feerate.
This commit is contained in:
Boris Nagaev 2024-10-21 15:35:32 -03:00
parent f8c1607154
commit 697e8d6255
No known key found for this signature in database
6 changed files with 53 additions and 8 deletions

View file

@ -11,6 +11,7 @@ import (
"github.com/lightninglabs/loop/liquidity"
"github.com/lightninglabs/loop/loopdb"
"github.com/lightninglabs/loop/notifications"
"github.com/lightninglabs/loop/sweep"
"github.com/lightninglabs/loop/sweepbatcher"
"github.com/lightningnetwork/lnd"
"github.com/lightningnetwork/lnd/build"
@ -52,6 +53,9 @@ func SetupLoggers(root *build.RotatingLogWriter, intercept signal.Interceptor) {
lnd.AddSubLogger(
root, notifications.Subsystem, intercept, notifications.UseLogger,
)
lnd.AddSubLogger(
root, sweep.Subsystem, intercept, sweep.UseLogger,
)
}
// genSubLogger creates a logger for a subsystem. We provide an instance of