mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
log: downgrade gRPC logger level
This commit is contained in:
parent
85ed9d1bf3
commit
b96b72e979
1 changed files with 11 additions and 2 deletions
13
log.go
13
log.go
|
|
@ -85,13 +85,22 @@ func NewGrpcLogLogger(root *build.RotatingLogWriter,
|
|||
}
|
||||
|
||||
// GrpcLogLogger is a wrapper around a btclog logger to make it compatible with
|
||||
// the grpclog logger package.
|
||||
// the grpclog logger package. By default we downgrade the info level to debug
|
||||
// to reduce the verbosity of the logger.
|
||||
type GrpcLogLogger struct {
|
||||
btclog.Logger
|
||||
}
|
||||
|
||||
func (l GrpcLogLogger) Info(args ...interface{}) {
|
||||
l.Logger.Debug(args...)
|
||||
}
|
||||
|
||||
func (l GrpcLogLogger) Infoln(args ...interface{}) {
|
||||
l.Logger.Error(args...)
|
||||
l.Logger.Debug(args...)
|
||||
}
|
||||
|
||||
func (l GrpcLogLogger) Infof(format string, args ...interface{}) {
|
||||
l.Logger.Debugf(format, args...)
|
||||
}
|
||||
|
||||
func (l GrpcLogLogger) Warning(args ...interface{}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue