Skip to content

Commit

Permalink
Turn down some ManageAgent logs from info to debug (#22)
Browse files Browse the repository at this point in the history
The `ManageAgent` stream reconnects every 10 seconds, due to #21. While
the API will still work, it adds noise to the log.

Modify some ManageAgent logs from info to debug, until #21 is resolved.

Signed-off-by: Andrew Seigner <[email protected]>
  • Loading branch information
siggy authored Jul 26, 2021
1 parent 4ea5a52 commit 9f6b38e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions agent/pkg/api/manage_agent_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func (s *manageAgentStream) startStream() {
for {
command, err := s.recvCommand()
if err != nil {
s.log.Infof("stream closed, reseting: %s", err)
// TODO: set this back to `Infof`:
// https://github.com/BuoyantIO/linkerd-buoyant/issues/21
s.log.Debugf("stream closed, reseting: %s", err)
s.resetStream()
continue
}
Expand Down Expand Up @@ -69,7 +71,9 @@ func (s *manageAgentStream) newStream() pb.Api_ManageAgentClient {
break
}

s.log.Info("ManageAgentStream connected")
// TODO: set this back to `Info`:
// https://github.com/BuoyantIO/linkerd-buoyant/issues/21
s.log.Debug("ManageAgentStream connected")
return stream
}

Expand Down

0 comments on commit 9f6b38e

Please sign in to comment.