Merge pull request #3484 from joostjager/fix-hop-log

htlcswitch/hop: fix logging
This commit is contained in:
Conner Fromknecht 2019-09-11 13:37:43 -07:00 committed by GitHub
commit 2c3ce2a183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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