mirror of https://github.com/docker/docs.git
Shorten health check name and remove redundant logging
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
77fa33f737
commit
a70605a9e6
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue