Skip to content

Commit

Permalink
Remove useless heartbeat success log prints (#740)
Browse files Browse the repository at this point in the history
* Remove useless heartbeat success log prints

* Change the log level to debug

* update  doHeartbeat log to debug
  • Loading branch information
weihubeats committed Jun 14, 2024
1 parent 2046d47 commit ad13fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion golang/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ func (cli *defaultClient) doHeartbeat(target string, request *v2.HeartbeatReques
Message: resp.GetStatus().GetMessage(),
}
}
cli.log.Infof("send heartbeat successfully, endpoints=%v", endpoints)
cli.log.Debugf("send heartbeat successfully, endpoints=%v", endpoints)
switch p := cli.clientImpl.(type) {
case *defaultProducer:
if _, ok := p.isolated.LoadAndDelete(target); ok {
Expand Down
2 changes: 1 addition & 1 deletion golang/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (cm *defaultClientManager) clearIdleRpcClients() {
}
}
func (cm *defaultClientManager) doHeartbeat() {
sugarBaseLogger.Info("clientManager start doHeartbeat")
sugarBaseLogger.Debug("clientManager start doHeartbeat")
cm.clientTable.Range(func(_, v interface{}) bool {
client := v.(*defaultClient)
client.Heartbeat()
Expand Down

0 comments on commit ad13fe3

Please sign in to comment.