Skip to content

Commit e1a3d72

Browse files
committed
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
1 parent 5f3807f commit e1a3d72

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/java/org/elasticsearch/common/settings

1 file changed

+2
-2
lines changed

core/src/main/java/org/elasticsearch/common/settings/Setting.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ protected void checkDeprecation(Settings settings) {
344344
if (this.isDeprecated() && this.exists(settings)) {
345345
// It would be convenient to show its replacement key, but replacement is often not so simple
346346
final DeprecationLogger deprecationLogger = new DeprecationLogger(Loggers.getLogger(getClass()));
347-
deprecationLogger.deprecated("[{}] setting was deprecated in Elasticsearch and it will be removed in a future release! " +
348-
"See the breaking changes lists in the documentation for details", getKey());
347+
deprecationLogger.deprecated("[{}] setting was deprecated in Elasticsearch and will be removed in a future release! " +
348+
"See the breaking changes documentation for the next major version.", getKey());
349349
}
350350
}
351351

0 commit comments

Comments
 (0)