Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango committed May 31, 2021
1 parent 0a6bb53 commit a620839
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/net/grpc/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ func isHealthy(conn *ClientConn) bool {
case connectivity.Ready:
return true
case connectivity.Idle, connectivity.Connecting:
log.Debug("grpc target %s's connection status will be Ready soon:\tstatus: %s", conn.Target(), state.String())
log.Debugf("grpc target %s's connection status will be Ready soon:\tstatus: %s", conn.Target(), state.String())
return true
case connectivity.Shutdown, connectivity.TransientFailure:
log.Error("grpc target %s's connection status is unhealthy:\tstatus: %s", conn.Target(), state.String())
log.Errorf("grpc target %s's connection status is unhealthy:\tstatus: %s", conn.Target(), state.String())
return false
}
log.Error("grpc target %s's connection status is unknown:\tstatus: %s", conn.Target(), state.String())
log.Errorf("grpc target %s's connection status is unknown:\tstatus: %s", conn.Target(), state.String())
return false
}

0 comments on commit a620839

Please sign in to comment.