Commit b810a59b by 朱海

[chg]异常捕获

1 parent 8fdb47f3
......@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
......@@ -42,6 +43,7 @@ public class ILM implements CommandLineRunner {
@Override
public void run(String... args) throws Exception {
try {
Map<String, Phase> phases = new HashMap<>();
Map<String, LifecycleAction> setPriorityAction = new HashMap<>();
setPriorityAction.put(SetPriorityAction.NAME, new SetPriorityAction(100));
......@@ -58,5 +60,8 @@ public class ILM implements CommandLineRunner {
if (acknowledgedResponse.isAcknowledged()) {
log.info(LIFECYCLE_NAME + "生命周期创建完成");
}
} catch (Exception e) {
log.error("生命周期创建异常", e);
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!