From 3a2ca434fec9f523a79a4cf17dd7bd1981e6bd6c Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Mon, 9 Sep 2019 13:51:41 +0200 Subject: [PATCH] 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. --- htlcswitch/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/log.go b/htlcswitch/log.go index c76a8f72..5749de09 100644 --- a/htlcswitch/log.go +++ b/htlcswitch/log.go @@ -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