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

lightningnetwork / lnd / 16293469910

15 Jul 2025 12:37PM UTC coverage: 67.331%. First build
16293469910

Pull #10076

github

web-flow
Merge d2cba13bd into df6c02e3a
Pull Request #10076: Design Doc for Dynamic Commitments

9 of 24 new or added lines in 3 files covered. (37.5%)

135418 of 201124 relevant lines covered (67.33%)

21712.17 hits per line

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

72.73
/htlcswitch/dyn/log.go
1
package dyn
2

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

8
// log is a logger that is initialized with no output filters. This means the
9
// package will not perform any logging by default until the caller requests it.
10
var log btclog.Logger
11

12
// Subsystem defines the logging code for this subsystem.
13
const Subsystem = "DYNC"
14

15
// The default amount of logging is none.
16
func init() {
6✔
17
        logger := build.NewSubLogger(Subsystem, nil)
6✔
18

6✔
19
        UseLogger(logger)
6✔
20
}
6✔
21

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

28
// UseLogger uses a specified Logger to output package logging info. This should
29
// be used in preference to SetLogWriter if the caller is also using btclog.
30
func UseLogger(logger btclog.Logger) {
6✔
31
        log = logger
6✔
32
}
6✔
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