Merge pull request #3484 from joostjager/fix-hop-log
htlcswitch/hop: fix logging
This commit is contained in:
commit
2c3ce2a183
@ -16,7 +16,6 @@ func init() {
|
|||||||
logger := build.NewSubLogger("HSWC", nil)
|
logger := build.NewSubLogger("HSWC", nil)
|
||||||
|
|
||||||
UseLogger(logger)
|
UseLogger(logger)
|
||||||
hop.UseLogger(logger)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// DisableLog disables all library log output. Logging output is disabled
|
// DisableLog disables all library log output. Logging output is disabled
|
||||||
@ -30,6 +29,7 @@ func DisableLog() {
|
|||||||
// using btclog.
|
// using btclog.
|
||||||
func UseLogger(logger btclog.Logger) {
|
func UseLogger(logger btclog.Logger) {
|
||||||
log = logger
|
log = logger
|
||||||
|
hop.UseLogger(logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
// logClosure is used to provide a closure over expensive logging operations so
|
// logClosure is used to provide a closure over expensive logging operations so
|
||||||
|
Loading…
Reference in New Issue
Block a user