From a6208396b23035fb4acb4c4d54fe086604823143 Mon Sep 17 00:00:00 2001 From: kpango Date: Mon, 31 May 2021 15:30:32 +0900 Subject: [PATCH] fix Signed-off-by: kpango --- internal/net/grpc/pool/pool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/net/grpc/pool/pool.go b/internal/net/grpc/pool/pool.go index 17b912784b..d660588682 100644 --- a/internal/net/grpc/pool/pool.go +++ b/internal/net/grpc/pool/pool.go @@ -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 }