• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 12320026784

13 Dec 2024 05:14PM UTC coverage: 57.562% (-1.1%) from 58.636%
12320026784

Pull #9315

github

web-flow
Merge pull request #9277 from yyforyongyu/yy-blockbeat-end

Beat [4/4]: implement `Consumer` in `chainWatcher`
Pull Request #9315: Implement `blockbeat`

1754 of 2518 new or added lines in 30 files covered. (69.66%)

19108 existing lines in 247 files now uncovered.

102548 of 178151 relevant lines covered (57.56%)

24794.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/chainio/log.go
1
package chainio
2

3
import (
4
        "github.com/btcsuite/btclog/v2"
5
        "github.com/lightningnetwork/lnd/build"
6
)
7

8
// Subsystem defines the logging code for this subsystem.
9
const Subsystem = "CHIO"
10

11
// clog is a logger that is initialized with no output filters. This means the
12
// package will not perform any logging by default until the caller requests
13
// it.
14
var clog btclog.Logger
15

16
// The default amount of logging is none.
17
func init() {
17✔
18
        UseLogger(build.NewSubLogger(Subsystem, nil))
17✔
19
}
17✔
20

21
// DisableLog disables all library log output. Logging output is disabled by
22
// default until UseLogger is called.
NEW
23
func DisableLog() {
×
NEW
24
        UseLogger(btclog.Disabled)
×
NEW
25
}
×
26

27
// UseLogger uses a specified Logger to output package logging info. This
28
// should be used in preference to SetLogWriter if the caller is also using
29
// btclog.
30
func UseLogger(logger btclog.Logger) {
17✔
31
        clog = logger
17✔
32
}
17✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc