mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Always use deprecateAndMaybeLog for deprecation warnings (#55319)
Backport of #55115. Replace calls to deprecate(String,Object...) with deprecateAndMaybeLog(...), with an appropriate key, so that all messages can potentially be deduplicated.
This commit is contained in:
parent
87f4751eca
commit
d66af46724
72 changed files with 194 additions and 160 deletions
|
@ -135,11 +135,13 @@ final class Ec2ClientSettings {
|
|||
return null;
|
||||
} else {
|
||||
if (key.length() == 0) {
|
||||
deprecationLogger.deprecated("Setting [{}] is set but [{}] is not, which will be unsupported in future",
|
||||
deprecationLogger.deprecatedAndMaybeLog("ec2_invalid_settings",
|
||||
"Setting [{}] is set but [{}] is not, which will be unsupported in future",
|
||||
SECRET_KEY_SETTING.getKey(), ACCESS_KEY_SETTING.getKey());
|
||||
}
|
||||
if (secret.length() == 0) {
|
||||
deprecationLogger.deprecated("Setting [{}] is set but [{}] is not, which will be unsupported in future",
|
||||
deprecationLogger.deprecatedAndMaybeLog("ec2_invalid_settings",
|
||||
"Setting [{}] is set but [{}] is not, which will be unsupported in future",
|
||||
ACCESS_KEY_SETTING.getKey(), SECRET_KEY_SETTING.getKey());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue