From ef19e9a25b87f7ab90d745b7c8c4b1ab66e586a6 Mon Sep 17 00:00:00 2001 From: Jacopo Date: Fri, 16 Aug 2024 22:26:01 +0200 Subject: [PATCH] hotfix substring --- .../java/it/pagopa/selfcare/pagopa/config/LoggingAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/pagopa/selfcare/pagopa/config/LoggingAspect.java b/src/main/java/it/pagopa/selfcare/pagopa/config/LoggingAspect.java index 3ea02d8..b190754 100644 --- a/src/main/java/it/pagopa/selfcare/pagopa/config/LoggingAspect.java +++ b/src/main/java/it/pagopa/selfcare/pagopa/config/LoggingAspect.java @@ -120,7 +120,7 @@ public Object logApiInvocation(ProceedingJoinPoint joinPoint) throws Throwable { @AfterReturning(value = "execution(* *..exception.ErrorHandler.*(..))", returning = "result") public void trowingApiInvocation(JoinPoint joinPoint, ResponseEntity result) { MDC.put(STATUS, "KO"); - MDC.put(CODE, String.valueOf(result.getStatusCodeValue())); + MDC.put(CODE, String.valueOf(result.getStatusCode())); MDC.put(RESPONSE_TIME, getExecutionTime()); MDC.put(RESPONSE, toJsonString(result)); MDC.put(FAULT_CODE, getTitle(result));