Skip to content

Commit e01eb23

Browse files
committed
add status compare
1 parent cd8da92 commit e01eb23

File tree

1 file changed

+1
-1
lines changed
  • metrics/metrics-core/src/main/java/org/apache/servicecomb/metrics/core/publish

1 file changed

+1
-1
lines changed

metrics/metrics-core/src/main/java/org/apache/servicecomb/metrics/core/publish/PublishUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static String refactorStatus(Invocation invocation, Response response) {
8989
return String.valueOf(response.getStatusCode());
9090
}
9191
HttpServerResponse contextResponse = context.response();
92-
if (contextResponse.closed() && !contextResponse.ended()) {
92+
if (response.getStatusCode() == 200 && contextResponse.closed() && !contextResponse.ended()) {
9393
return EMPTY_RESULT;
9494
}
9595
}

0 commit comments

Comments
 (0)