We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f83009b commit 0dd75d3Copy full SHA for 0dd75d3
server/src/com/mirth/connect/plugins/serverlog/ArrayAppender.java
@@ -39,11 +39,9 @@ public void append(LogEvent logEvent) {
39
String channelId = null;
40
String channelName = null;
41
42
- // Check theoretically not necessary, as getContextMap never returns null
43
- // Safety first
44
- if (logEvent.getContextMap() != null) {
45
- channelId = logEvent.getContextMap().getOrDefault("channelId", "");
46
- channelName = logEvent.getContextMap().getOrDefault("channelName", "");
+ if (logEvent.getContextData() != null) {
+ channelId = logEvent.getContextData().getValue("channelId");
+ channelName = logEvent.getContextData().getValue("channelName");
47
}
48
49
String level = String.valueOf(logEvent.getLevel());
0 commit comments