mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
Merge pull request #3484 from joostjager/fix-hop-log
htlcswitch/hop: fix logging
This commit is contained in:
commit
2c3ce2a183
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue