Change default deprecation logger level to CRITICAL (#77030)

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-09 12:23:52 +02:00 committed by GitHub
parent e570588a88
commit 0d3cebe812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 392 additions and 247 deletions

View file

@ -193,7 +193,7 @@ public class UserAgentProcessor extends AbstractProcessor {
boolean ignoreMissing = readBooleanProperty(TYPE, processorTag, config, "ignore_missing", false);
Object ecsValue = config.remove("ecs");
if (ecsValue != null) {
deprecationLogger.deprecate(DeprecationCategory.SETTINGS, "ingest_useragent_ecs_settings",
deprecationLogger.critical(DeprecationCategory.SETTINGS, "ingest_useragent_ecs_settings",
"setting [ecs] is deprecated as ECS format is the default and only option");
}