File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
spring-cloud-context/src/main/java/org/springframework/cloud/endpoint Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1919import java .util .Collection ;
2020import java .util .Set ;
2121
22+ import org .apache .commons .logging .Log ;
23+ import org .apache .commons .logging .LogFactory ;
24+
2225import org .springframework .boot .actuate .endpoint .annotation .Endpoint ;
2326import org .springframework .boot .actuate .endpoint .annotation .WriteOperation ;
2427import org .springframework .cloud .context .refresh .ContextRefresher ;
3033@ Endpoint (id = "refresh" )
3134public 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
You can’t perform that action at this time.
0 commit comments