diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/DeleteAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/DeleteAction.java index 37dda08d0ba..42d9122daa1 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/DeleteAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/DeleteAction.java @@ -67,13 +67,11 @@ public class DeleteAction implements LifecycleAction { client.admin().indices().delete(new DeleteIndexRequest(index.getName()), new ActionListener() { @Override public void onResponse(DeleteIndexResponse deleteIndexResponse) { - logger.error(deleteIndexResponse); listener.onSuccess(true); } @Override public void onFailure(Exception e) { - logger.error(e); listener.onFailure(e); } }); diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/RolloverAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/RolloverAction.java index ac5270080da..7195cc67a56 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/RolloverAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/indexlifecycle/RolloverAction.java @@ -6,6 +6,7 @@ package org.elasticsearch.xpack.core.indexlifecycle; import org.apache.logging.log4j.Logger; +import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.admin.indices.rollover.RolloverRequest; import org.elasticsearch.action.admin.indices.rollover.RolloverResponse; @@ -164,13 +165,11 @@ public class RolloverAction implements LifecycleAction { client.admin().indices().rolloverIndex(rolloverRequest, new ActionListener() { @Override public void onResponse(RolloverResponse rolloverResponse) { - logger.error(rolloverResponse); listener.onSuccess(rolloverResponse.isRolledOver()); } @Override public void onFailure(Exception e) { - logger.error(e); listener.onFailure(e); } });