Correct deprec log in RestGetFieldMappingAction (#37843)
* Correct deprec log in RestGetFieldMappingAction Correct a class used for deprecation logging in RestGetFieldMappingAction * Correct deprec log in RestCreateIndexAction Correct a class used for deprecation logging in RestCreateIndexAction
This commit is contained in:
parent
97e89ad0bc
commit
70af3c7983
|
@ -40,7 +40,7 @@ import java.util.Map;
|
|||
|
||||
public class RestCreateIndexAction extends BaseRestHandler {
|
||||
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(
|
||||
LogManager.getLogger(RestPutMappingAction.class));
|
||||
LogManager.getLogger(RestCreateIndexAction.class));
|
||||
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Using include_type_name in create " +
|
||||
"index requests is deprecated. The parameter will be removed in the next major version.";
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ import static org.elasticsearch.rest.RestStatus.OK;
|
|||
public class RestGetFieldMappingAction extends BaseRestHandler {
|
||||
|
||||
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(
|
||||
LogManager.getLogger(RestPutMappingAction.class));
|
||||
LogManager.getLogger(RestGetFieldMappingAction.class));
|
||||
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Using include_type_name in get " +
|
||||
"field mapping requests is deprecated. The parameter will be removed in the next major version.";
|
||||
|
||||
|
|
Loading…
Reference in New Issue