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

lightningnetwork / lnd / 17771623214

16 Sep 2025 03:55PM UTC coverage: 57.218% (-9.4%) from 66.645%
17771623214

Pull #9489

github

web-flow
Merge 7d73e5cff into 9a6d34a02
Pull Request #9489: multi: add BuildOnion, SendOnion, and TrackOnion RPCs

329 of 564 new or added lines in 12 files covered. (58.33%)

28538 existing lines in 459 files now uncovered.

99745 of 174325 relevant lines covered (57.22%)

1.78 hits per line

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

66.67
/lnrpc/switchrpc/log.go
1
package switchrpc
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
// Subsystem defines the logging code for this subsystem.
14
const Subsystem = "SRPC"
15

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

21
// DisableLog disables all library log output.  Logging output is disabled
22
// by 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.
28
// This should be used in preference to SetLogWriter if the caller is also
29
// using btclog.
30
func UseLogger(logger btclog.Logger) {
3✔
31
        log = logger
3✔
32
}
3✔
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