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

lightningnetwork / lnd / 16181619122

09 Jul 2025 10:33PM UTC coverage: 55.326% (-2.3%) from 57.611%
16181619122

Pull #10060

github

web-flow
Merge d15e8671f into 0e830da9d
Pull Request #10060: sweep: fix expected spending events being missed

9 of 26 new or added lines in 2 files covered. (34.62%)

23695 existing lines in 280 files now uncovered.

108518 of 196143 relevant lines covered (55.33%)

22354.81 hits per line

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

0.0
/build/handlers.go
1
package build
2

3
import (
4
        "os"
5

6
        "github.com/btcsuite/btclog/v2"
7
)
8

9
// NewDefaultLogHandlers returns the standard console logger and rotating log
10
// writer handlers that we generally want to use. It also applies the various
11
// config options to the loggers.
12
func NewDefaultLogHandlers(cfg *LogConfig,
UNCOV
13
        rotator *RotatingLogWriter) []btclog.Handler {
×
UNCOV
14

×
UNCOV
15
        var handlers []btclog.Handler
×
UNCOV
16

×
UNCOV
17
        consoleLogHandler := btclog.NewDefaultHandler(
×
UNCOV
18
                os.Stdout, cfg.Console.HandlerOptions()...,
×
UNCOV
19
        )
×
UNCOV
20
        logFileHandler := btclog.NewDefaultHandler(
×
UNCOV
21
                rotator, cfg.File.HandlerOptions()...,
×
UNCOV
22
        )
×
UNCOV
23

×
UNCOV
24
        maybeAddLogger := func(cmdOptionDisable bool, handler btclog.Handler) {
×
UNCOV
25
                if !cmdOptionDisable {
×
UNCOV
26
                        handlers = append(handlers, handler)
×
UNCOV
27
                }
×
28
        }
UNCOV
29
        switch LoggingType {
×
30
        case LogTypeStdOut:
×
31
                maybeAddLogger(cfg.Console.Disable, consoleLogHandler)
×
UNCOV
32
        case LogTypeDefault:
×
UNCOV
33
                maybeAddLogger(cfg.Console.Disable, consoleLogHandler)
×
UNCOV
34
                maybeAddLogger(cfg.File.Disable, logFileHandler)
×
35
        }
36

UNCOV
37
        return handlers
×
38
}
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