Skip to content

Commit

Permalink
healthcheck: disable default healthcheck logger
Browse files Browse the repository at this point in the history
Disable logging by default in the healthcheck submodule to cut
dependency on lnd/build as we are hooking the logger separately
during lnd init.
  • Loading branch information
bhandras committed May 5, 2021
1 parent 6d66133 commit cee832b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions healthcheck/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package healthcheck

import (
"github.com/btcsuite/btclog"
"github.com/lightningnetwork/lnd/build"
)

// Subsystem defines the logging code for this subsystem.
Expand All @@ -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.
Expand Down

0 comments on commit cee832b

Please sign in to comment.