From 232d2301cedd44070449d155618274b91bab0275 Mon Sep 17 00:00:00 2001 From: Andrea De Rinaldis Date: Mon, 16 Sep 2024 13:05:49 +0200 Subject: [PATCH] fix: refactoring on trace writing for log (and cost) tuning --- .../wispconverter/exception/AppErrorCodeMessageEnum.java | 2 +- .../wispconverter/service/ECommerceHangTimerService.java | 8 ++++---- .../pagopa/wispconverter/service/ReceiptTimerService.java | 4 ++-- .../gov/pagopa/wispconverter/service/RecoveryService.java | 2 +- .../servicebus/ECommerceHangTimeoutConsumer.java | 2 +- .../wispconverter/servicebus/PaymentTimeoutConsumer.java | 2 +- .../gov/pagopa/wispconverter/servicebus/RTConsumer.java | 6 +++--- .../java/it/gov/pagopa/wispconverter/util/ReUtil.java | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/it/gov/pagopa/wispconverter/exception/AppErrorCodeMessageEnum.java b/src/main/java/it/gov/pagopa/wispconverter/exception/AppErrorCodeMessageEnum.java index e16882bd..cb515889 100644 --- a/src/main/java/it/gov/pagopa/wispconverter/exception/AppErrorCodeMessageEnum.java +++ b/src/main/java/it/gov/pagopa/wispconverter/exception/AppErrorCodeMessageEnum.java @@ -50,7 +50,7 @@ public enum AppErrorCodeMessageEnum { PERSISTENCE_RPT_NOT_FOUND(2001, "RPT not found", "Error while retrieving RPT. RPT with sessionId [{0}] not found.", HttpStatus.NOT_FOUND, "An error occurred while trying to retrieve the RPT content saved in storage by WISP SOAP Converter. This can be related either with the use of a wrong sessionId or a missed persistence from WISP SOAP Converter, so it is better to analyze the entire flow using Technical Support's APIs. This block totally the conversion of the RPTs in GPD's payment positions, so the whole process is discarded."), PERSISTENCE_RT_NOT_FOUND(2002, "RT not found", "Error while retrieving RT. RT with id [{0}] and partition key [{1}] not found.", HttpStatus.NOT_FOUND, "An error occurred while trying to retrieve the RT content saved in storage by WISP Converter. This can be related either with the use of a wrong identifier, a missed persistence or an expired object, so it is better to analyze the entire flow using Technical Support's APIs."), PERSISTENCE_REQUESTID_CACHING_ERROR(2003, "RequestID caching error", "Error while reading cached RequestID. No valid value found for key [{0}].", HttpStatus.NOT_FOUND, "An error occurred while trying to retrieve data from internal cache. Specifically, the cached key, defined in format wisp_nav2iuv__