Prechádzať zdrojové kódy

Improve setting deprecation message (#23156)

This change modifies the deprecation log message emitted when a setting
is found which is deprecated. The new message indicates docs for the
deprecated settings can be found in the breaking changes docs for the
next major version.

closes #22849
Ryan Ernst 8 rokov pred
rodič
commit
048c87d8a5

+ 2 - 2
core/src/main/java/org/elasticsearch/common/settings/Setting.java

@@ -345,8 +345,8 @@ public class Setting<T> extends ToXContentToBytes {
         if (this.isDeprecated() && this.exists(settings)) {
             // It would be convenient to show its replacement key, but replacement is often not so simple
             final DeprecationLogger deprecationLogger = new DeprecationLogger(Loggers.getLogger(getClass()));
-            deprecationLogger.deprecated("[{}] setting was deprecated in Elasticsearch and it will be removed in a future release! " +
-                "See the breaking changes lists in the documentation for details", getKey());
+            deprecationLogger.deprecated("[{}] setting was deprecated in Elasticsearch and will be removed in a future release! " +
+                "See the breaking changes documentation for the next major version.", getKey());
         }
     }