We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212f565 commit 8ad7b34Copy full SHA for 8ad7b34
components/common-go/experiments/types.go
@@ -12,6 +12,7 @@ import (
12
13
configcat "github.com/configcat/go-sdk/v7"
14
"github.com/gitpod-io/gitpod/common-go/log"
15
+ "github.com/sirupsen/logrus"
16
)
17
18
type Client interface {
@@ -65,11 +66,13 @@ func NewClient(opts ...ClientOpt) Client {
65
66
if opt.sdkKey == "" {
67
return NewAlwaysReturningDefaultValueClient()
68
}
69
+ logger := log.Log.Dup()
70
+ logger.Logger.SetLevel(logrus.ErrorLevel)
71
return newConfigCatClient(configcat.Config{
72
SDKKey: opt.sdkKey,
73
BaseURL: opt.baseURL,
74
PollInterval: opt.pollInterval,
75
HTTPTimeout: 3 * time.Second,
- Logger: &configCatLogger{log.Log},
76
+ Logger: &configCatLogger{logger},
77
})
78
0 commit comments