Skip to content

Commit

Permalink
Changes log level for posted intent to Info
Browse files Browse the repository at this point in the history
Posted intent are very imprortant logs which can help understand
the flow of update communication between controller and agent.
Therefore, changing it to level info so that we can easily navigate
important logs.
  • Loading branch information
srgothi92 committed Aug 4, 2021
1 parent 8aa706c commit 69deaf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,6 @@ func (k *k8sPoster) Post(i *intent.Intent) error {
if err != nil {
return err
}
log.Debugf("posted intent")
log.Info("posted intent")
return nil
}
2 changes: 1 addition & 1 deletion pkg/controller/manager_kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ func (k *k8sPoster) Post(i *intent.Intent) error {
k.log.WithFields(logrus.Fields{
"node": nodeName,
"intent": i.DisplayString(),
}).Debugf("posted intent")
}).Info("posted intent")
return nil
}

0 comments on commit 69deaf9

Please sign in to comment.