|
@@ -552,10 +552,14 @@ public class Setting<T> implements ToXContentObject {
|
|
|
if (this.isDeprecated() && this.exists(settings)) {
|
|
if (this.isDeprecated() && this.exists(settings)) {
|
|
|
// It would be convenient to show its replacement key, but replacement is often not so simple
|
|
// It would be convenient to show its replacement key, but replacement is often not so simple
|
|
|
final String key = getKey();
|
|
final String key = getKey();
|
|
|
- Settings.DeprecationLoggerHolder.deprecationLogger
|
|
|
|
|
- .critical(DeprecationCategory.SETTINGS, key,
|
|
|
|
|
- "[{}] setting was deprecated in Elasticsearch and will be removed in a future release! "
|
|
|
|
|
- + "See the breaking changes documentation for the next major version.", key);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ List<String> skipTheseDeprecations = settings.getAsList("deprecation.skip_deprecated_settings");
|
|
|
|
|
+ if (Regex.simpleMatch(skipTheseDeprecations, key) == false) {
|
|
|
|
|
+ Settings.DeprecationLoggerHolder.deprecationLogger
|
|
|
|
|
+ .critical(DeprecationCategory.SETTINGS, key,
|
|
|
|
|
+ "[{}] setting was deprecated in Elasticsearch and will be removed in a future release! "
|
|
|
|
|
+ + "See the breaking changes documentation for the next major version.", key);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|