mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 06:04:20 +01:00
htlcswitch/hop: fix logging
Logging for the hop package is controlled via the parent htlcswitch package. Unfortunately the parent package only controlled the initialization, but didn't enable the logger when the log level came in from the main lnd package.
This commit is contained in:
@@ -16,7 +16,6 @@ func init() {
|
||||
logger := build.NewSubLogger("HSWC", nil)
|
||||
|
||||
UseLogger(logger)
|
||||
hop.UseLogger(logger)
|
||||
}
|
||||
|
||||
// DisableLog disables all library log output. Logging output is disabled
|
||||
@@ -30,6 +29,7 @@ func DisableLog() {
|
||||
// using btclog.
|
||||
func UseLogger(logger btclog.Logger) {
|
||||
log = logger
|
||||
hop.UseLogger(logger)
|
||||
}
|
||||
|
||||
// logClosure is used to provide a closure over expensive logging operations so
|
||||
|
||||
Reference in New Issue
Block a user