Skip to content

Commit

Permalink
Use Loggers.getLogger in TransportShardBulkAction
Browse files Browse the repository at this point in the history
Signed-off-by: Khushboo Rajput <[email protected]>
  • Loading branch information
khushbr committed Mar 8, 2024
1 parent 5a086c5 commit b5d725a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

package org.opensearch.action.bulk;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
import org.apache.logging.log4j.util.MessageSupplier;
Expand Down Expand Up @@ -70,6 +69,7 @@
import org.opensearch.common.compress.CompressedXContent;
import org.opensearch.common.inject.Inject;
import org.opensearch.common.lease.Releasable;
import org.opensearch.common.logging.Loggers;
import org.opensearch.common.settings.Settings;
import org.opensearch.common.unit.TimeValue;
import org.opensearch.common.util.concurrent.AbstractRunnable;
Expand Down Expand Up @@ -126,7 +126,7 @@ public class TransportShardBulkAction extends TransportWriteAction<BulkShardRequ

public static final String ACTION_NAME = BulkAction.NAME + "[s]";

private static final Logger logger = LogManager.getLogger(TransportShardBulkAction.class);
private static final Logger logger = Loggers.getLogger(TransportShardBulkAction.class);
private static final Function<IndexShard, String> EXECUTOR_NAME_FUNCTION = shard -> {
if (shard.indexSettings().getIndexMetadata().isSystem()) {
return Names.SYSTEM_WRITE;
Expand Down

0 comments on commit b5d725a

Please sign in to comment.