Shorten health check name and remove redundant logging

Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
Ying Li 2015-10-08 15:42:14 -07:00
parent 77fa33f737
commit a70605a9e6
2 changed files with 1 additions and 7 deletions

View File

@ -150,7 +150,7 @@ func main() {
} }
health.RegisterPeriodicFunc( health.RegisterPeriodicFunc(
"DB connectable and valid", keyStore.HealthCheck, time.Second*60) "DB operational", keyStore.HealthCheck, time.Second*60)
cryptoService := cryptoservice.NewCryptoService("", keyStore) cryptoService := cryptoservice.NewCryptoService("", keyStore)

View File

@ -110,9 +110,6 @@ func (s *KeyManagementServer) GetKeyInfo(ctx context.Context, keyID *pb.KeyID) (
//CheckHealth returns the HealthStatus with the service //CheckHealth returns the HealthStatus with the service
func (s *KeyManagementServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error) { func (s *KeyManagementServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error) {
logger := ctxu.GetLogger(ctx)
logger.Debug("CheckHealth: Returning HealthStatus for KeyManagementServer")
return &pb.HealthStatus{ return &pb.HealthStatus{
Status: s.HealthChecker(), Status: s.HealthChecker(),
}, nil }, nil
@ -151,9 +148,6 @@ func (s *SignerServer) Sign(ctx context.Context, sr *pb.SignatureRequest) (*pb.S
//CheckHealth returns the HealthStatus with the service //CheckHealth returns the HealthStatus with the service
func (s *SignerServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error) { func (s *SignerServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error) {
logger := ctxu.GetLogger(ctx)
logger.Debug("CheckHealth: Returning HealthStatus for SignerServer")
return &pb.HealthStatus{ return &pb.HealthStatus{
Status: s.HealthChecker(), Status: s.HealthChecker(),
}, nil }, nil