Skip to content

Commit feae8e9

Browse files
authored
Fix the deprecation logger class for RestIndexAction (#73819)
incorrect class for deprecation logger was used
1 parent 3e59bc0 commit feae8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/rest/action/document/RestIndexAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import static org.elasticsearch.rest.RestRequest.Method.PUT;
3535

3636
public class RestIndexAction extends BaseRestHandler {
37-
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(RestDeleteAction.class);
37+
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(RestIndexAction.class);
3838
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in document " +
3939
"index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, " +
4040
"or /{index}/_create/{id}).";

0 commit comments

Comments
 (0)