refactoring of code

This commit is contained in:
Jonas Kaninda
2024-11-17 04:11:07 +01:00
parent f87059a45e
commit 319634670c

View File

@@ -98,7 +98,7 @@ func (health Health) createHealthCheckJob() error {
_, err := c.AddFunc(expression, func() { _, err := c.AddFunc(expression, func() {
err := health.Check() err := health.Check()
if err != nil { if err != nil {
logger.Error("Route %s is unhealthy: error %v", health.Name, err.Error()) logger.Error("Route %s is unhealthy: %v", health.Name, err.Error())
return return
} }
logger.Info("Route %s is healthy", health.Name) logger.Info("Route %s is healthy", health.Name)