From 55f21cee67b36dd6352a775a50ef048a0ff35140 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Thu, 24 Oct 2019 12:43:12 +0300 Subject: fix ApacheClientMetricInterceptor to return expected ResponseCode Issue-ID: VID-253 Signed-off-by: Eylon Malin Change-Id: I5c90f5bcbf34eee28c192128333ca940558ecb30 --- .../main/java/org/onap/vid/logging/ApacheClientMetricInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common/src/main/java/org') diff --git a/vid-app-common/src/main/java/org/onap/vid/logging/ApacheClientMetricInterceptor.java b/vid-app-common/src/main/java/org/onap/vid/logging/ApacheClientMetricInterceptor.java index f5b09501e..51e684456 100644 --- a/vid-app-common/src/main/java/org/onap/vid/logging/ApacheClientMetricInterceptor.java +++ b/vid-app-common/src/main/java/org/onap/vid/logging/ApacheClientMetricInterceptor.java @@ -51,7 +51,7 @@ public abstract class ApacheClientMetricInterceptor extends AbstractMetricLogFil @Override protected String getResponseCode(HttpResponse httpResponse) { - return httpResponse.getStatusLine().getReasonPhrase(); + return String.valueOf(httpResponse.getStatusLine().getStatusCode()); } @Override -- cgit 1.2.3-korg