Skip to content

Commit

Permalink
fix issue (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 authored Jun 13, 2024
1 parent 295b016 commit 04e746d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -39,6 +44,7 @@ public RefreshEndpoint(ContextRefresher contextRefresher) {
@WriteOperation
public Collection<String> refresh() {
Set<String> keys = this.contextRefresher.refresh();
LOG.info("Refreshed keys : " + keys);
return keys;
}

Expand Down

0 comments on commit 04e746d

Please sign in to comment.