Fix failing evil logger tests
This commit fixes failing evil logger tests. The tests were failing after inadvertently configuring appenders on the parent and child logger.
This commit is contained in:
parent
0853fc806f
commit
9a58fc2348
|
@ -76,7 +76,7 @@ public class EvilLoggerTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void assertLogLine(final String logLine, final Level level, final String location, final String message) {
|
private void assertLogLine(final String logLine, final Level level, final String location, final String message) {
|
||||||
final Matcher matcher = Pattern.compile("\\[(.*)\\]\\[(.*)\\(.*\\)\\] \\[\\] (.*)").matcher(logLine);
|
final Matcher matcher = Pattern.compile("\\[(.*)\\]\\[(.*)\\(.*\\)\\] (.*)").matcher(logLine);
|
||||||
assertTrue(logLine, matcher.matches());
|
assertTrue(logLine, matcher.matches());
|
||||||
assertThat(matcher.group(1), equalTo(level.toString()));
|
assertThat(matcher.group(1), equalTo(level.toString()));
|
||||||
assertThat(matcher.group(2), equalTo(location));
|
assertThat(matcher.group(2), equalTo(location));
|
||||||
|
|
|
@ -17,8 +17,6 @@ rootLogger.appenderRef.file.ref = file
|
||||||
|
|
||||||
logger.test.name = test
|
logger.test.name = test
|
||||||
logger.test.level = trace
|
logger.test.level = trace
|
||||||
logger.test.appenderRef.console.ref = console
|
|
||||||
logger.test.appenderRef.file.ref = file
|
|
||||||
|
|
||||||
appender.deprecation_file.type = File
|
appender.deprecation_file.type = File
|
||||||
appender.deprecation_file.name = deprecation_file
|
appender.deprecation_file.name = deprecation_file
|
||||||
|
|
Loading…
Reference in New Issue