elasticsearch/distribution/tools/cli-launcher
Przemyslaw Gomulka 3e804bdadb
Initialise ES logging in CLI (#97353)
ES logging has to be explicitly initialised with a call to LoggerFactory.setInstance This is normally done as LogConfigurator.configure(Environment,boolean) is calling this as part of initPhase1

However CLI tools were not using that method. Cli tools are using LogConfigurator.configureWithoutConfig and that method was not setting up ES logging

This commit modifies configureWithoutConfig to also configure esLogging It also adds a LogConfigurator.configureESLogging call explicitly in CliToolLauncher This allows to build a new cli-launcher.jar and replace it in previous 8.7-8.9 clusters

closes #97350
2023-07-04 16:49:07 +02:00
..
src Initialise ES logging in CLI (#97353) 2023-07-04 16:49:07 +02:00
build.gradle Setup elasticsearch dependency monitoring with Snyk for production code (#88036) 2022-06-29 13:29:14 +02:00