Skip to content

Commit

Permalink
Fix bulid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jochen Schalanda committed Apr 13, 2017
1 parent 99e6517 commit f50057f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ private Message processLogEvent(LogEvent logEvent) {
}

if (includeThreadContext) {
for (Map.Entry<String, String> entry : logEvent.getContextMap().entrySet()) {
message.addField("context_" + entry.getKey(), entry.getValue());
}
logEvent.getContextData().forEach((k, v ) -> message.addField("context_" + k, v));

// Guard against https://issues.apache.org/jira/browse/LOG4J2-1530
final ThreadContext.ContextStack contextStack = logEvent.getContextStack();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void appenderUsesThresholdFilter() throws Exception {
assertThat(appender.getFilter()).isInstanceOf(ThresholdFilter.class);
}

private final class TestConsumer implements Consumer<byte[]> {
private static final class TestConsumer implements Consumer<byte[]> {
private final List<byte[]> processedLogEvents = new ArrayList<>();

@Override
Expand Down

0 comments on commit f50057f

Please sign in to comment.