diff options
author | Jason Tedor <jason@tedor.me> | 2017-06-24 08:16:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-24 08:16:59 -0400 |
commit | 43c190339a7dccf6eaa6c2bbe52bb5bfd3339605 (patch) | |
tree | 8195bf2f9a231a24a530a4179c7204223405ab99 /core/src/main/java/org/elasticsearch | |
parent | 79a833655956a3bc18fe951fa6030f0e93aca45e (diff) |
Remove dead logger prefix code
When Log4j 2 was introduced, we removed support for the system property
es.logger.prefix. Yet, some code was left behind. This commit removes
that dead code.
Relates #25377
Diffstat (limited to 'core/src/main/java/org/elasticsearch')
-rw-r--r-- | core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java b/core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java index 74fc600d62..4674f1ea93 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java @@ -266,13 +266,6 @@ final class Bootstrap { } } - /** Set the system property before anything has a chance to trigger its use */ - // TODO: why? is it just a bad default somewhere? or is it some BS around 'but the client' garbage <-- my guess - @SuppressForbidden(reason = "sets logger prefix on initialization") - static void initLoggerPrefix() { - System.setProperty("es.logger.prefix", ""); - } - /** * This method is invoked by {@link Elasticsearch#main(String[])} to startup elasticsearch. */ @@ -281,9 +274,6 @@ final class Bootstrap { final Path pidFile, final boolean quiet, final Environment initialEnv) throws BootstrapException, NodeValidationException, UserException { - // Set the system property before anything has a chance to trigger its use - initLoggerPrefix(); - // force the class initializer for BootstrapInfo to run before // the security manager is installed BootstrapInfo.init(); |