Skip to content

Commit

Permalink
hotfix substring
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Aug 16, 2024
1 parent ab6d527 commit ef19e9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public Object logApiInvocation(ProceedingJoinPoint joinPoint) throws Throwable {
@AfterReturning(value = "execution(* *..exception.ErrorHandler.*(..))", returning = "result")
public void trowingApiInvocation(JoinPoint joinPoint, ResponseEntity<ProblemJson> 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));
Expand Down

0 comments on commit ef19e9a

Please sign in to comment.