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 19
19
import java .util .Collection ;
20
20
import java .util .Set ;
21
21
22
+ import org .apache .commons .logging .Log ;
23
+ import org .apache .commons .logging .LogFactory ;
24
+
22
25
import org .springframework .boot .actuate .endpoint .annotation .Endpoint ;
23
26
import org .springframework .boot .actuate .endpoint .annotation .WriteOperation ;
24
27
import org .springframework .cloud .context .refresh .ContextRefresher ;
30
33
@ Endpoint (id = "refresh" )
31
34
public class RefreshEndpoint {
32
35
33
- private ContextRefresher contextRefresher ;
36
+ private static final Log LOG = LogFactory .getLog (RefreshEndpoint .class );
37
+
38
+ private final ContextRefresher contextRefresher ;
34
39
35
40
public RefreshEndpoint (ContextRefresher contextRefresher ) {
36
41
this .contextRefresher = contextRefresher ;
@@ -39,6 +44,7 @@ public RefreshEndpoint(ContextRefresher contextRefresher) {
39
44
@ WriteOperation
40
45
public Collection <String > refresh () {
41
46
Set <String > keys = this .contextRefresher .refresh ();
47
+ LOG .info ("Refreshed keys : " + keys );
42
48
return keys ;
43
49
}
44
50
You can’t perform that action at this time.
0 commit comments