chore: Fix log call without placeholder

This commit is contained in:
Shrikant Sharat Kandula 2023-06-05 16:46:33 +05:30 committed by GitHub
parent 00974cd43c
commit 643335bbe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ public class HealthCheckServiceCEImpl implements HealthCheckServiceCE {
@Override
public Mono<Health> getRedisHealth() {
Function<TimeoutException, Throwable> healthTimeout = error -> {
log.warn("Redis health check timed out: ", error.getMessage());
log.warn("Redis health check timed out: {}", error.getMessage());
return new AppsmithException(AppsmithError.HEALTHCHECK_TIMEOUT, "Redis");
};
RedisReactiveHealthIndicator redisReactiveHealthIndicator = new RedisReactiveHealthIndicator(reactiveRedisConnectionFactory);
@ -47,7 +47,7 @@ public class HealthCheckServiceCEImpl implements HealthCheckServiceCE {
@Override
public Mono<Health> getMongoHealth() {
Function<TimeoutException, Throwable> healthTimeout = error -> {
log.warn("MongoDB health check timed out: ", error.getMessage());
log.warn("MongoDB health check timed out: {}", error.getMessage());
return new AppsmithException(AppsmithError.HEALTHCHECK_TIMEOUT, "Mongo");
};
MongoReactiveHealthIndicator mongoReactiveHealthIndicator = new MongoReactiveHealthIndicator(reactiveMongoTemplate);