diff --git a/pkg/extension/opampextension/opamp_agent.go b/pkg/extension/opampextension/opamp_agent.go index c74ddeecde..82548f16cf 100644 --- a/pkg/extension/opampextension/opamp_agent.go +++ b/pkg/extension/opampextension/opamp_agent.go @@ -486,8 +486,7 @@ func (o *opampAgent) applyRemoteConfig(config *protobufs.AgentRemoteConfig) (con } fb, err := k.Marshal(yaml.Parser()) - o.logger.Info("Agent config yaml", zap.String("config", string(fb))) - + if err != nil { return false, fmt.Errorf("cannot marshal config named %s: %v", n, err) }