From 54a48aacc3381e9f96f9c6daf23a7bc44f2de971 Mon Sep 17 00:00:00 2001 From: Luiz Pegoraro Date: Thu, 12 Oct 2023 11:12:42 -0300 Subject: [PATCH] feat(agent): log identation. --- agent/backend/otel/policy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/backend/otel/policy.go b/agent/backend/otel/policy.go index ef3476f59..239e09179 100644 --- a/agent/backend/otel/policy.go +++ b/agent/backend/otel/policy.go @@ -49,7 +49,9 @@ func (o *openTelemetryBackend) ApplyPolicy(newPolicyData policies.PolicyData, up if currentPolicyData.Version <= newPolicyData.Version { dataAsByte := []byte(newPolicyData.Data.(string)) currentPolicyPath := o.policyConfigDirectory + fmt.Sprintf(tempFileNamePattern, currentPolicyData.ID) - o.logger.Info("new policy version received, updating", zap.String("policy_id", newPolicyData.ID), zap.Int32("version", newPolicyData.Version)) + o.logger.Info("new policy version received, updating", + zap.String("policy_id", newPolicyData.ID), + zap.Int32("version", newPolicyData.Version)) err := os.WriteFile(currentPolicyPath, dataAsByte, os.ModeTemporary) if err != nil { return err