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

lightningnetwork / lnd / 13079354088

31 Jan 2025 07:19PM UTC coverage: 50.131%. First build
13079354088

Pull #9460

github

Roasbeef
docs/release-notes: add entry for AMP HTLC bug fix
Pull Request #9460: release: create branch for v0.18.5-beta.rc1

137 of 338 new or added lines in 15 files covered. (40.53%)

98580 of 196644 relevant lines covered (50.13%)

2.08 hits per line

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

66.67
/routing/localchans/log.go
1
package localchans
2

3
import (
4
        "github.com/btcsuite/btclog"
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
10
// it.
11
var log btclog.Logger
12

13
const Subsystem = "LCHN"
14

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

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

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