diff --git a/components/common-go/experiments/configcat.go b/components/common-go/experiments/configcat.go index 63a61a5f9a6591..18af161ee11592 100644 --- a/components/common-go/experiments/configcat.go +++ b/components/common-go/experiments/configcat.go @@ -106,6 +106,10 @@ func (l *configCatLogger) GetLevel() configcat.LogLevel { return configcat.LogLevelError } +func (l *configCatLogger) Debugf(format string, args ...interface{}) {} +func (l *configCatLogger) Infof(format string, args ...interface{}) {} +func (l *configCatLogger) Warnf(format string, args ...interface{}) {} + func logField(experimentName, value interface{}) logrus.Fields { return logrus.Fields{ fmt.Sprintf("experiments.%s", experimentName): value, diff --git a/components/common-go/experiments/types.go b/components/common-go/experiments/types.go index 3062c65ffbd463..22071958dd3812 100644 --- a/components/common-go/experiments/types.go +++ b/components/common-go/experiments/types.go @@ -12,7 +12,6 @@ import ( configcat "github.com/configcat/go-sdk/v7" "github.com/gitpod-io/gitpod/common-go/log" - "github.com/sirupsen/logrus" ) type Client interface { @@ -90,13 +89,11 @@ func NewClient(opts ...ClientOpt) Client { } return NewAlwaysReturningDefaultValueClient() } - logger := log.Log.Dup() - logger.Logger.SetLevel(logrus.ErrorLevel) return newConfigCatClient(configcat.Config{ SDKKey: opt.sdkKey, BaseURL: opt.baseURL, PollInterval: opt.pollInterval, HTTPTimeout: 3 * time.Second, - Logger: &configCatLogger{logger}, + Logger: &configCatLogger{log.Log}, }) }