Change default deprecation logger level to CRITICAL backport(#77030) (#77482)

This commit changes default deprecation logger level to CRITICAL, where default means deprecations emitted by DeprecationLogger#critical method.
It also introduces WARN deprecations which are emitted by DeprecationLogger#warn Those log lines emitted at WARN are meant to indicate that a functionality is deprecated but will not break at next major version.
relates #76754
This commit is contained in:
Przemyslaw Gomulka 2021-09-27 13:43:16 +02:00 committed by GitHub
parent 6cccbf55c3
commit 4ef3a58a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
195 changed files with 509 additions and 365 deletions

View file

@ -125,12 +125,12 @@ final class Ec2ClientSettings {
return null;
} else {
if (key.length() == 0) {
deprecationLogger.deprecate(DeprecationCategory.SETTINGS, "ec2_invalid_settings",
deprecationLogger.critical(DeprecationCategory.SETTINGS, "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.deprecate(DeprecationCategory.SETTINGS, "ec2_invalid_settings",
deprecationLogger.critical(DeprecationCategory.SETTINGS, "ec2_invalid_settings",
"Setting [{}] is set but [{}] is not, which will be unsupported in future",
ACCESS_KEY_SETTING.getKey(), SECRET_KEY_SETTING.getKey());
}