From 0f44e594bb053fdd07ab659d7bcd210910da0a87 Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:56:51 +0200 Subject: [PATCH] fix traces --- .../controller/RPTTimerController.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/it/gov/pagopa/wispconverter/controller/RPTTimerController.java b/src/main/java/it/gov/pagopa/wispconverter/controller/RPTTimerController.java index 4c53b469..eceb3fb7 100644 --- a/src/main/java/it/gov/pagopa/wispconverter/controller/RPTTimerController.java +++ b/src/main/java/it/gov/pagopa/wispconverter/controller/RPTTimerController.java @@ -39,9 +39,9 @@ public class RPTTimerController { private final ErrorUtil errorUtil; - @Operation(summary = "createTimer", description = "Create a timer linked with paymentToken and rpt data", security = {@SecurityRequirement(name = "ApiKey")}, tags = {"RPTTimer"}) + @Operation(summary = "createTimer", description = "Create a timer from sessionId data", security = {@SecurityRequirement(name = "ApiKey")}, tags = {"RPTTimer"}) @ApiResponses(value = { - @ApiResponse(responseCode = "200", description = "Successfully paymentToken expiration timer created", content = @Content(schema = @Schema())) + @ApiResponse(responseCode = "200", description = "Successfully rpt timer created", content = @Content(schema = @Schema())) }) @PostMapping( value = "/timer", @@ -51,23 +51,23 @@ public class RPTTimerController { @Trace(businessProcess = RPT_BP_TIMER_SET, reEnabled = true) public void createTimer(@RequestBody RPTTimerRequest request) { try { - log.info("Invoking API operation createTimer - args: {}", sanitizeInput(request.toString())); + log.info("Invoking API operation createRPTTimer - args: {}", sanitizeInput(request.toString())); rptTimerService.sendMessage(request); - log.info("Successful API operation createTimer"); + log.info("Successful API operation createRPTTimer"); } catch (Exception ex) { String operationId = MDC.get(Constants.MDC_OPERATION_ID); log.error(String.format("GenericException: operation-id=[%s]", operationId != null ? operationId : "n/a"), ex); AppException appException = new AppException(ex, AppErrorCodeMessageEnum.ERROR, ex.getMessage()); ErrorResponse errorResponse = errorUtil.forAppException(appException); - log.error("Failed API operation createTimer - error: {}", errorResponse); + log.error("Failed API operation createRPTTimer - error: {}", errorResponse); throw ex; } } - @Operation(summary = "deleteTimer", description = "Delete a timer by paymentToken", security = {@SecurityRequirement(name = "ApiKey")}, tags = {"ReceiptTimer"}) + @Operation(summary = "deleteTimer", description = "Delete a timer by sessionId", security = {@SecurityRequirement(name = "ApiKey")}, tags = {"RPTTimer"}) @ApiResponses(value = { - @ApiResponse(responseCode = "200", description = "Successfully paymentToken expiration timer deleted", content = @Content(schema = @Schema())) + @ApiResponse(responseCode = "200", description = "Successfully rpt timer deleted", content = @Content(schema = @Schema())) }) @DeleteMapping( value = "/timer",