Skip to content

Commit

Permalink
Update opamp_agent.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan2221 authored Aug 28, 2024
1 parent f10e533 commit 7adf685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/extension/opampextension/opamp_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ func (o *opampAgent) saveEffectiveConfig(dir string) error {

for k, v := range o.effectiveConfig {
p := filepath.Join(dir, k)
o.logger.Info("Loading file to Validate...", p)
o.logger.Info("Loading file to Validate...", zap.String("message"))


// OpenFile the same way os.Create does it, but with 0600 perms
f, err := os.OpenFile(p, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600)
Expand Down

0 comments on commit 7adf685

Please sign in to comment.