mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 07:14:59 +00:00
Add back path.logs setup in internal settings preparer
This commit is contained in:
parent
e4e71d8a9a
commit
ea4c27a089
@ -112,7 +112,7 @@ public class LogConfigurator {
|
||||
}
|
||||
}
|
||||
// ensure explicit path to logs dir exists
|
||||
props.put("path.logs", cleanPath(environment.logsFile().toAbsolutePath().toString()));
|
||||
props.setProperty("log4j.path.logs", cleanPath(environment.logsFile().toAbsolutePath().toString()));
|
||||
PropertyConfigurator.configure(props);
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
import static org.elasticsearch.common.Strings.cleanPath;
|
||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||
|
||||
/**
|
||||
@ -125,6 +126,11 @@ public class InternalSettingsPreparer {
|
||||
initializeSettings(output, input, false);
|
||||
finalizeSettings(output, terminal, environment.configFile());
|
||||
|
||||
environment = new Environment(output.build());
|
||||
|
||||
// we put back the path.logs so we can use it in the logging configuration file
|
||||
output.put("path.logs", cleanPath(environment.logsFile().toAbsolutePath().toString()));
|
||||
|
||||
return new Environment(output.build());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user