logging rewrite

This commit is contained in:
Jörg Prante 2023-02-23 23:04:34 +01:00
parent 833418ca57
commit f28511ea5e

View file

@ -553,7 +553,7 @@ public abstract class AbstractAdminClient extends AbstractBasicClient implements
@Override
public void forceMerge(String indexName, int maxNumSegments) {
ensureClientIsPresent();
logger.info("starting force merge of " + indexName + " to " + maxNumSegments + " segments");
logger.log(Level.INFO, "starting force merge of " + indexName + " to " + maxNumSegments + " segments");
ForceMergeRequest forceMergeRequest = new ForceMergeRequest();
forceMergeRequest.indices(indexName);
forceMergeRequest.maxNumSegments(maxNumSegments);