From fe22c08207563533632c9579364bafd1e95c94ba Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Mon, 12 Mar 2018 13:18:02 -0700 Subject: [PATCH] stop using illegal logging of Object --- .../elasticsearch/xpack/core/indexlifecycle/DeleteAction.java | 2 -- .../xpack/core/indexlifecycle/RolloverAction.java | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) 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); } });