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,
|
// Redirect stdout/stderr to log4j. While we ensure Elasticsearch code does not write to those streams,
|
||||||
// third party libraries may do that
|
// 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("stdout"), Level.INFO), false, StandardCharsets.UTF_8.name()));
|
||||||
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stderr"), Level.WARN), false, StandardCharsets.UTF_8));
|
System.setOut(new PrintStream(new LoggingOutputStream(LogManager.getLogger("stderr"), Level.WARN), false, StandardCharsets.UTF_8.name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void configureStatusLogger() {
|
private static void configureStatusLogger() {
|
||||||
|
|
Loading…
Reference in New Issue