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

lightningnetwork / lnd / 16883452553

11 Aug 2025 02:44PM UTC coverage: 66.909% (+0.009%) from 66.9%
16883452553

Pull #9844

github

web-flow
Merge 4e0af2f49 into f3e1f2f35
Pull Request #9844: Refactor Payment PR 3

106 of 147 new or added lines in 11 files covered. (72.11%)

61 existing lines in 19 files now uncovered.

135735 of 202866 relevant lines covered (66.91%)

21586.57 hits per line

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

66.67
/payments/db/log.go
1
package paymentsdb
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
//
12
//nolint:unused
13
var log btclog.Logger
14

15
// Subsystem defines the logging identifier for this subsystem.
16
const Subsystem = "PYDB"
17

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

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

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