mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
DeprecationLogger's constructor should not create two loggers. It was taking parent logger instance, changing its name with a .deprecation prefix and creating a new logger. Most of the time parent logger was not needed. It was causing Log4j to unnecessarily cache the unused parent logger instance. depends on #61515 backports #58435
This commit is contained in:
parent
3a8cfdc1f5
commit
9f566644af
162 changed files with 199 additions and 420 deletions
|
@ -77,7 +77,7 @@ final class Ec2ClientSettings {
|
|||
|
||||
private static final Logger logger = LogManager.getLogger(Ec2ClientSettings.class);
|
||||
|
||||
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(logger);
|
||||
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(Ec2ClientSettings.class);
|
||||
|
||||
/** Credentials to authenticate with ec2. */
|
||||
final AWSCredentials credentials;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue