This is an automated email from the ASF dual-hosted git repository.
fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 62129f2d558 CAMEL-21934: Additional Information Needed in
ContextHealthCheck message
62129f2d558 is described below
commit 62129f2d55815dea2f05cbb35d49df14cf03338b
Author: ldemasi <[email protected]>
AuthorDate: Thu Apr 3 14:21:30 2025 +0200
CAMEL-21934: Additional Information Needed in ContextHealthCheck message
---
.../apache/camel/spring/boot/actuate/health/CamelProbesHelper.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelProbesHelper.java
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelProbesHelper.java
index a46534fa1f9..c21a57a7cfe 100644
---
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelProbesHelper.java
+++
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelProbesHelper.java
@@ -17,6 +17,8 @@
package org.apache.camel.spring.boot.actuate.health;
import java.util.Collection;
+import java.util.stream.Collectors;
+
import org.apache.camel.health.HealthCheck;
import org.slf4j.Logger;
@@ -34,9 +36,12 @@ public final class CamelProbesHelper {
log.warn("Probe in group '{}', with id '{}' failed with
message '{}'", result.getCheck().getGroup(),
result.getCheck().getId(),
result.getMessage().orElse(""));
result.getError().ifPresent(error ->
log.warn(error.getMessage(), error));
+ log.debug("Probe in group '{}', with id '{}' failed with
message '{}' details: \n {}", result.getCheck().getGroup(),
+ result.getMessage().orElse(""),
result.getCheck().getId(), result.getDetails().entrySet().stream()
+ .map(x -> x.getKey() + ": " + x.getValue())
+ .collect(Collectors.joining("\n")));
}
}
-
return isUp;
}
}