diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2021-02-12 17:45:12 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-02-12 20:07:13 +0000 |
commit | 9276e6c54b7c84d2db4571a930bf8141598e2e8c (patch) | |
tree | d650f44a49a14bc43d24c8e0bad846e14c430540 /server/sonar-main/src/main/java | |
parent | 70cd3fb194cb5d5d966a368ea3b7cda30253b6d8 (diff) | |
download | sonarqube-9276e6c54b7c84d2db4571a930bf8141598e2e8c.tar.gz sonarqube-9276e6c54b7c84d2db4571a930bf8141598e2e8c.zip |
SONAR-14455 Turn-off Elasticsearch 7.10.2 deprecation logging
Diffstat (limited to 'server/sonar-main/src/main/java')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/es/EsLogging.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/es/EsLogging.java b/server/sonar-main/src/main/java/org/sonar/application/es/EsLogging.java index 1b0902a6a70..47c8a675a99 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/es/EsLogging.java +++ b/server/sonar-main/src/main/java/org/sonar/application/es/EsLogging.java @@ -47,6 +47,10 @@ public class EsLogging { log4JPropertiesBuilder.apply( LogLevelConfig.newBuilder(log4JPropertiesBuilder.getRootLoggerName()) .rootLevelFor(ProcessId.ELASTICSEARCH) + // turn off ES type deprecation logging to not flood logs + .immutableLevel("DEPRECATION", Level.ERROR) + .immutableLevel("org.elasticsearch.deprecation", Level.ERROR) + .immutableLevel("org.elasticsearch.client.RestClient", Level.ERROR) .build()); return log4JPropertiesBuilder.get(); |