Skip to content

Commit

Permalink
P4ADEV-1448 added log
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoGiuliani committed Nov 28, 2024
1 parent 2ed2e34 commit 1ebfff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public AnprMockControllerImpl(AnprMockService anprMockService) {

@Override
public ResponseEntity<RispostaE002OK> findUseCase(RichiestaE002 request) {
log.info("[MOCK_ANPR] Starting find use case with operation code: {}", request.getDatiRichiesta().getCasoUso());
ResponseEntity<RispostaE002OK> response = anprMockService.findUseCase(request);
log.info("[MOCK_ANPR] Returning {}", response);
log.info("[MOCK_ANPR] Returning idANPR {}", response.getBody().getIdOperazioneANPR());
return response;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class AnprMockServiceImpl implements AnprMockService {
@Override
public ResponseEntity<RispostaE002OK> findUseCase(RichiestaE002 request) {
String operationCode = request.getDatiRichiesta().getCasoUso();

ClientOperation clientOperation = ClientOperation.fromCode(operationCode);

return switch (clientOperation) {
Expand Down

0 comments on commit 1ebfff6

Please sign in to comment.