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

lightningnetwork / lnd / 12412789487

19 Dec 2024 12:34PM UTC coverage: 57.535% (-1.1%) from 58.653%
12412789487

Pull #9315

github

yyforyongyu
contractcourt: include custom records on replayed htlc

Add another case in addition to #9357.
Pull Request #9315: Implement `blockbeat`

1744 of 2518 new or added lines in 30 files covered. (69.26%)

19172 existing lines in 248 files now uncovered.

102529 of 178204 relevant lines covered (57.53%)

24755.58 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