From 04e746da46429e6705579b476a434aa26ffafe7c Mon Sep 17 00:00:00 2001 From: erabii Date: Thu, 13 Jun 2024 21:48:52 +0300 Subject: [PATCH] fix issue (#1357) --- .../springframework/cloud/endpoint/RefreshEndpoint.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/endpoint/RefreshEndpoint.java b/spring-cloud-context/src/main/java/org/springframework/cloud/endpoint/RefreshEndpoint.java index 1b234aae5..42dcc995e 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/endpoint/RefreshEndpoint.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/endpoint/RefreshEndpoint.java @@ -19,6 +19,9 @@ import java.util.Collection; import java.util.Set; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.actuate.endpoint.annotation.WriteOperation; import org.springframework.cloud.context.refresh.ContextRefresher; @@ -30,7 +33,9 @@ @Endpoint(id = "refresh") public class RefreshEndpoint { - private ContextRefresher contextRefresher; + private static final Log LOG = LogFactory.getLog(RefreshEndpoint.class); + + private final ContextRefresher contextRefresher; public RefreshEndpoint(ContextRefresher contextRefresher) { this.contextRefresher = contextRefresher; @@ -39,6 +44,7 @@ public RefreshEndpoint(ContextRefresher contextRefresher) { @WriteOperation public Collection refresh() { Set keys = this.contextRefresher.refresh(); + LOG.info("Refreshed keys : " + keys); return keys; }