mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fix backport compilation
Java 8 doesn't have a PrintStream ctor which takes a Charset object, only a charset name. This fixes that.
This commit is contained in:
parent
a564cac7ba
commit
a156629b4a
@ -247,8 +247,8 @@ public class LogConfigurator {
|
||||
|
||||
// Redirect stdout/stderr to log4j. While we ensure Elasticsearch code does not write to those streams,
|
||||
// third party libraries may do that
|
||||
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stdout"), Level.INFO), false, StandardCharsets.UTF_8));
|
||||
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stderr"), Level.WARN), false, StandardCharsets.UTF_8));
|
||||
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stdout"), Level.INFO), false, StandardCharsets.UTF_8.name()));
|
||||
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stderr"), Level.WARN), false, StandardCharsets.UTF_8.name()));
|
||||
}
|
||||
|
||||
private static void configureStatusLogger() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user