File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
components/common-go/experiments Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,10 @@ func (l *configCatLogger) GetLevel() configcat.LogLevel {
106
106
return configcat .LogLevelError
107
107
}
108
108
109
+ func (l * configCatLogger ) Debugf (format string , args ... interface {}) {}
110
+ func (l * configCatLogger ) Infof (format string , args ... interface {}) {}
111
+ func (l * configCatLogger ) Warnf (format string , args ... interface {}) {}
112
+
109
113
func logField (experimentName , value interface {}) logrus.Fields {
110
114
return logrus.Fields {
111
115
fmt .Sprintf ("experiments.%s" , experimentName ): value ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
13
13
configcat "github.com/configcat/go-sdk/v7"
14
14
"github.com/gitpod-io/gitpod/common-go/log"
15
- "github.com/sirupsen/logrus"
16
15
)
17
16
18
17
type Client interface {
@@ -90,13 +89,11 @@ func NewClient(opts ...ClientOpt) Client {
90
89
}
91
90
return NewAlwaysReturningDefaultValueClient ()
92
91
}
93
- logger := log .Log .Dup ()
94
- logger .Logger .SetLevel (logrus .ErrorLevel )
95
92
return newConfigCatClient (configcat.Config {
96
93
SDKKey : opt .sdkKey ,
97
94
BaseURL : opt .baseURL ,
98
95
PollInterval : opt .pollInterval ,
99
96
HTTPTimeout : 3 * time .Second ,
100
- Logger : & configCatLogger {logger },
97
+ Logger : & configCatLogger {log . Log },
101
98
})
102
99
}
You can’t perform that action at this time.
0 commit comments