Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions broker/src/main/resources/rmq.broker.logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

<configuration scan="true" scanPeriod="30 seconds">

<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
Comment thread
wang-jiahua marked this conversation as resolved.

<appender name="DefaultSiftingAppender_inner" class="ch.qos.logback.classic.sift.SiftingAppender">
<discriminator>
<key>brokerContainerLogDir</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public enum TopicMessageType {
MIXED("MIXED");

private final String value;
private final String metricsValue;

TopicMessageType(String value) {
this.value = value;
this.metricsValue = value.toLowerCase(java.util.Locale.ROOT);
}

public static Set<String> topicMessageTypeSet() {
Expand Down Expand Up @@ -67,6 +69,6 @@ public static TopicMessageType parseFromMessageProperty(Map<String, String> mess
}

public String getMetricsValue() {
return value.toLowerCase();
return metricsValue;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,12 @@ public static CompletableFuture<Void> convertChannelFutureToCompletableFuture(Ch
}

public static String getRequestCodeDesc(int code) {
return REQUEST_CODE_MAP.getOrDefault(code, String.valueOf(code));
String desc = REQUEST_CODE_MAP.get(code);
return desc != null ? desc : String.valueOf(code);
}

public static String getResponseCodeDesc(int code) {
return RESPONSE_CODE_MAP.getOrDefault(code, String.valueOf(code));
String desc = RESPONSE_CODE_MAP.get(code);
return desc != null ? desc : String.valueOf(code);
}
}
Loading