Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private static void configureLoggingWithoutConfig(Map<String, String> sysprops)
final String loggerLevel = sysprops.getOrDefault("es.logger.level", Level.INFO.name());
final Settings settings = Settings.builder().put("logger.level", loggerLevel).build();
LogConfigurator.configureWithoutConfig(settings);
// a temporary fix to allow a cli-launcher.jar replacement. That method should is called in configureWithoutConfig
LogConfigurator.configureESLogging();
}

/**
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog/97353.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 97353
summary: Initialise ES logging in CLI
area: Infra/CLI
type: bug
issues:
- 97350
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public static void registerErrorListener() {
*/
public static void configureWithoutConfig(final Settings settings) {
Objects.requireNonNull(settings);
configureESLogging();
// we initialize the status logger immediately otherwise Log4j will complain when we try to get the context
configureStatusLogger();
configureLoggerLevels(settings);
Expand Down