stop using illegal logging of Object
This commit is contained in:
parent
ebff02c1b2
commit
fe22c08207
|
@ -67,13 +67,11 @@ public class DeleteAction implements LifecycleAction {
|
||||||
client.admin().indices().delete(new DeleteIndexRequest(index.getName()), new ActionListener<DeleteIndexResponse>() {
|
client.admin().indices().delete(new DeleteIndexRequest(index.getName()), new ActionListener<DeleteIndexResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(DeleteIndexResponse deleteIndexResponse) {
|
public void onResponse(DeleteIndexResponse deleteIndexResponse) {
|
||||||
logger.error(deleteIndexResponse);
|
|
||||||
listener.onSuccess(true);
|
listener.onSuccess(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Exception e) {
|
public void onFailure(Exception e) {
|
||||||
logger.error(e);
|
|
||||||
listener.onFailure(e);
|
listener.onFailure(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
package org.elasticsearch.xpack.core.indexlifecycle;
|
package org.elasticsearch.xpack.core.indexlifecycle;
|
||||||
|
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.elasticsearch.ExceptionsHelper;
|
||||||
import org.elasticsearch.action.ActionListener;
|
import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.admin.indices.rollover.RolloverRequest;
|
import org.elasticsearch.action.admin.indices.rollover.RolloverRequest;
|
||||||
import org.elasticsearch.action.admin.indices.rollover.RolloverResponse;
|
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>() {
|
client.admin().indices().rolloverIndex(rolloverRequest, new ActionListener<RolloverResponse>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(RolloverResponse rolloverResponse) {
|
public void onResponse(RolloverResponse rolloverResponse) {
|
||||||
logger.error(rolloverResponse);
|
|
||||||
listener.onSuccess(rolloverResponse.isRolledOver());
|
listener.onSuccess(rolloverResponse.isRolledOver());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Exception e) {
|
public void onFailure(Exception e) {
|
||||||
logger.error(e);
|
|
||||||
listener.onFailure(e);
|
listener.onFailure(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue