stop using illegal logging of Object

This commit is contained in:
Tal Levy 2018-03-12 13:18:02 -07:00
parent ebff02c1b2
commit fe22c08207
2 changed files with 1 additions and 4 deletions

View File

@ -67,13 +67,11 @@ public class DeleteAction implements LifecycleAction {
client.admin().indices().delete(new DeleteIndexRequest(index.getName()), new ActionListener<DeleteIndexResponse>() {
@Override
public void onResponse(DeleteIndexResponse deleteIndexResponse) {
logger.error(deleteIndexResponse);
listener.onSuccess(true);
}
@Override
public void onFailure(Exception e) {
logger.error(e);
listener.onFailure(e);
}
});

View File

@ -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<RolloverResponse>() {
@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);
}
});