From fafe75a697ec013d6a8050751254a3caf5ed3044 Mon Sep 17 00:00:00 2001 From: Jaganathan P <156800415+jagan2221@users.noreply.github.com> Date: Mon, 2 Dec 2024 19:47:16 +0530 Subject: [PATCH] Update opamp_agent.go --- pkg/extension/opampextension/opamp_agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }