Skip to content

Commit

Permalink
feat(agent): log identation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Pegoraro committed Oct 12, 2023
1 parent 4fe89a8 commit 54a48aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agent/backend/otel/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54a48aa

Please sign in to comment.