Skip to content

Commit 04e746d

Browse files
authored
fix issue (#1357)
1 parent 295b016 commit 04e746d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-cloud-context/src/main/java/org/springframework/cloud/endpoint/RefreshEndpoint.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import java.util.Collection;
2020
import java.util.Set;
2121

22+
import org.apache.commons.logging.Log;
23+
import org.apache.commons.logging.LogFactory;
24+
2225
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
2326
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
2427
import org.springframework.cloud.context.refresh.ContextRefresher;
@@ -30,7 +33,9 @@
3033
@Endpoint(id = "refresh")
3134
public class RefreshEndpoint {
3235

33-
private ContextRefresher contextRefresher;
36+
private static final Log LOG = LogFactory.getLog(RefreshEndpoint.class);
37+
38+
private final ContextRefresher contextRefresher;
3439

3540
public RefreshEndpoint(ContextRefresher contextRefresher) {
3641
this.contextRefresher = contextRefresher;
@@ -39,6 +44,7 @@ public RefreshEndpoint(ContextRefresher contextRefresher) {
3944
@WriteOperation
4045
public Collection<String> refresh() {
4146
Set<String> keys = this.contextRefresher.refresh();
47+
LOG.info("Refreshed keys : " + keys);
4248
return keys;
4349
}
4450

0 commit comments

Comments
 (0)