From 7a35f3e3be11ca183831e98f0450d18a2ffb1bbb Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 13 Feb 2017 13:57:22 -0800 Subject: [PATCH] Improve setting deprecation message 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 --- .../main/java/org/elasticsearch/common/settings/Setting.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/common/settings/Setting.java b/core/src/main/java/org/elasticsearch/common/settings/Setting.java index f85894790a867..bd275fde54c99 100644 --- a/core/src/main/java/org/elasticsearch/common/settings/Setting.java +++ b/core/src/main/java/org/elasticsearch/common/settings/Setting.java @@ -345,8 +345,8 @@ protected void checkDeprecation(Settings settings) { 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()); } }