diff --git a/src/main/java/it/gov/pagopa/payhub/mocks/anpr/controller/AnprMockControllerImpl.java b/src/main/java/it/gov/pagopa/payhub/mocks/anpr/controller/AnprMockControllerImpl.java index 147cd56..2da707c 100644 --- a/src/main/java/it/gov/pagopa/payhub/mocks/anpr/controller/AnprMockControllerImpl.java +++ b/src/main/java/it/gov/pagopa/payhub/mocks/anpr/controller/AnprMockControllerImpl.java @@ -18,8 +18,9 @@ public AnprMockControllerImpl(AnprMockService anprMockService) { @Override public ResponseEntity findUseCase(RichiestaE002 request) { + log.info("[MOCK_ANPR] Starting find use case with operation code: {}", request.getDatiRichiesta().getCasoUso()); ResponseEntity response = anprMockService.findUseCase(request); - log.info("[MOCK_ANPR] Returning {}", response); + log.info("[MOCK_ANPR] Returning idANPR {}", response.getBody().getIdOperazioneANPR()); return response; } } diff --git a/src/main/java/it/gov/pagopa/payhub/mocks/anpr/service/AnprMockServiceImpl.java b/src/main/java/it/gov/pagopa/payhub/mocks/anpr/service/AnprMockServiceImpl.java index bb6e594..7317a37 100644 --- a/src/main/java/it/gov/pagopa/payhub/mocks/anpr/service/AnprMockServiceImpl.java +++ b/src/main/java/it/gov/pagopa/payhub/mocks/anpr/service/AnprMockServiceImpl.java @@ -19,7 +19,6 @@ public class AnprMockServiceImpl implements AnprMockService { @Override public ResponseEntity findUseCase(RichiestaE002 request) { String operationCode = request.getDatiRichiesta().getCasoUso(); - ClientOperation clientOperation = ClientOperation.fromCode(operationCode); return switch (clientOperation) {