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

lightningnetwork / lnd / 15100227105

18 May 2025 09:28PM UTC coverage: 68.997% (+0.007%) from 68.99%
15100227105

Pull #9822

github

web-flow
Merge 40492099f into 3707b1fb7
Pull Request #9822: Refactor Payments Code (1|?)

414 of 501 new or added lines in 16 files covered. (82.63%)

49 existing lines in 19 files now uncovered.

133955 of 194145 relevant lines covered (69.0%)

22105.67 hits per line

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

66.67
/payments/log.go
1
package payments
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
9
// means the package will not perform any logging by default until the caller
10
// requests it.
11
var log btclog.Logger
12

13
// The default amount of logging is none.
14
func init() {
52✔
15
        UseLogger(build.NewSubLogger("PYMT", nil))
52✔
16
}
52✔
17

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

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