File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,22 @@ func NewGrpcLogLogger(root *build.RotatingLogWriter,
85
85
}
86
86
87
87
// GrpcLogLogger is a wrapper around a btclog logger to make it compatible with
88
- // the grpclog logger package.
88
+ // the grpclog logger package. By default we downgrade the info level to debug
89
+ // to reduce the verbosity of the logger.
89
90
type GrpcLogLogger struct {
90
91
btclog.Logger
91
92
}
92
93
94
+ func (l GrpcLogLogger ) Info (args ... interface {}) {
95
+ l .Logger .Debug (args ... )
96
+ }
97
+
93
98
func (l GrpcLogLogger ) Infoln (args ... interface {}) {
94
- l .Logger .Error (args ... )
99
+ l .Logger .Debug (args ... )
100
+ }
101
+
102
+ func (l GrpcLogLogger ) Infof (format string , args ... interface {}) {
103
+ l .Logger .Debugf (format , args ... )
95
104
}
96
105
97
106
func (l GrpcLogLogger ) Warning (args ... interface {}) {
You can’t perform that action at this time.
0 commit comments