From cee832b749a2b61ad479a84268bfd7ae0335a702 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Mon, 26 Apr 2021 22:00:34 +0200 Subject: [PATCH] healthcheck: disable default healthcheck logger Disable logging by default in the healthcheck submodule to cut dependency on lnd/build as we are hooking the logger separately during lnd init. --- healthcheck/log.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/healthcheck/log.go b/healthcheck/log.go index 159aa102..8c8f71c6 100644 --- a/healthcheck/log.go +++ b/healthcheck/log.go @@ -2,7 +2,6 @@ package healthcheck import ( "github.com/btcsuite/btclog" - "github.com/lightningnetwork/lnd/build" ) // Subsystem defines the logging code for this subsystem. @@ -11,12 +10,7 @@ const Subsystem = "HLCK" // log is a logger that is initialized with no output filters. This // means the package will not perform any logging by default until the caller // requests it. -var log btclog.Logger - -// The default amount of logging is none. -func init() { - UseLogger(build.NewSubLogger(Subsystem, nil)) -} +var log = btclog.Disabled // DisableLog disables all library log output. Logging output is disabled // by default until UseLogger is called.