diff --git a/helm/Chart.yaml b/helm/Chart.yaml
index 3fe1ae4..3b4c8b5 100644
--- a/helm/Chart.yaml
+++ b/helm/Chart.yaml
@@ -2,8 +2,8 @@ apiVersion: v2
name: pagopareceiptpdfgenerator
description: Microservice description
type: application
-version: 0.146.0
-appVersion: 1.13.3-1-PAGOPA-2017-fix-message-encoding
+version: 0.147.0
+appVersion: 1.13.4
dependencies:
- name: microservice-chart
version: 2.4.0
diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml
index 41b95a1..d0c4a4d 100644
--- a/helm/values-dev.yaml
+++ b/helm/values-dev.yaml
@@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-generator
- tag: "1.13.3-1-PAGOPA-2017-fix-message-encoding"
+ tag: "1.13.4"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml
index 9c93c06..d54b37e 100644
--- a/helm/values-prod.yaml
+++ b/helm/values-prod.yaml
@@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-generator
- tag: "1.13.3-1-PAGOPA-2017-fix-message-encoding"
+ tag: "1.13.4"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml
index a1eaffd..1057ddc 100644
--- a/helm/values-uat.yaml
+++ b/helm/values-uat.yaml
@@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-receipt-pdf-generator
- tag: "1.13.3-1-PAGOPA-2017-fix-message-encoding"
+ tag: "1.13.4"
pullPolicy: Always
# https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs
livenessProbe:
diff --git a/host.json b/host.json
index 5060de8..f8554c7 100644
--- a/host.json
+++ b/host.json
@@ -17,12 +17,17 @@
}
},
"logging": {
- "fileLoggingMode": "always",
+ "fileLoggingMode": "debugOnly",
"logLevel": {
- "default": "Information",
+ "default": "None",
"Host.Results": "Error",
- "Function": "Information",
- "Host.Aggregator": "Trace"
+ "Function.GenerateReceiptProcess": "Information",
+ "Function.ManageReceiptPoisonQueueProcessor": "Information",
+ "Function.RetryReviewedPoisonMessagesProcessor": "Information",
+ "Microsoft": "Information",
+ "Worker": "Information",
+ "Host.Aggregator": "Error",
+ "Host": "Error"
},
"applicationInsights": {
"samplingSettings": {
diff --git a/pom.xml b/pom.xml
index 809744f..4610c6d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
it.gov.pagopa.receipt
receipt-pdf-generator
- 1.13.3-1-PAGOPA-2017-fix-message-encoding
+ 1.13.4
jar
pagopa-receipt-pdf-generator
diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/generator/GenerateReceiptPdf.java b/src/main/java/it/gov/pagopa/receipt/pdf/generator/GenerateReceiptPdf.java
index f4aab53..c242c35 100644
--- a/src/main/java/it/gov/pagopa/receipt/pdf/generator/GenerateReceiptPdf.java
+++ b/src/main/java/it/gov/pagopa/receipt/pdf/generator/GenerateReceiptPdf.java
@@ -159,7 +159,7 @@ public void processGenerateReceipt(
return;
}
- logger.info("[{}] Generating pdf for Receipt with id {} and eventId {}",
+ logger.debug("[{}] Generating pdf for Receipt with id {} and eventId {}",
context.getFunctionName(),
receipt.getId(),
receiptEventReference);
@@ -179,7 +179,7 @@ public void processGenerateReceipt(
if (success) {
receipt.setStatus(ReceiptStatusType.GENERATED);
receipt.setGenerated_at(System.currentTimeMillis());
- logger.info("[{}] Receipt with id {} being saved with status {}",
+ logger.debug("[{}] Receipt with id {} being saved with status {}",
context.getFunctionName(),
receipt.getEventId(),
receipt.getStatus());
diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/generator/ManageReceiptPoisonQueue.java b/src/main/java/it/gov/pagopa/receipt/pdf/generator/ManageReceiptPoisonQueue.java
index 1775dd7..007a1c4 100644
--- a/src/main/java/it/gov/pagopa/receipt/pdf/generator/ManageReceiptPoisonQueue.java
+++ b/src/main/java/it/gov/pagopa/receipt/pdf/generator/ManageReceiptPoisonQueue.java
@@ -97,7 +97,7 @@ public void processManageReceiptPoisonQueue(
//attempt to Map queue bizEventMessage to BizEvent
listOfBizEvents = ObjectMapperUtils.mapBizEventListString(errorMessage, new TypeReference<>() {});
bizEvent = listOfBizEvents.get(0);
- logger.info("[{}] function called at {} recognized as valid BizEvent with id {}",
+ logger.debug("[{}] function called at {} recognized as valid BizEvent with id {}",
context.getFunctionName(), LocalDateTime.now(), bizEvent.getId());
if (Boolean.TRUE.equals(bizEvent.getAttemptedPoisonRetry())) {
logger.info("[{}] function called at {} for event with id {} has ingestion already retried, sending to review",
@@ -151,7 +151,7 @@ private void saveToReceiptError(ExecutionContext context, String errorMessage, S
String encodedEvent = Aes256Utils.encrypt(errorMessage);
receiptError.setMessagePayload(encodedEvent);
- logger.info("[{}] saving new entry to the retry error to review with payload {}",
+ logger.debug("[{}] saving new entry to the retry error to review with payload {}",
context.getFunctionName(), encodedEvent);
} catch (Aes256Exception e) {
receiptError.setMessageError(e.getMessage());
@@ -167,7 +167,7 @@ private void updateReceiptToReview(ExecutionContext context, String eventId,
receipt.setStatus(ReceiptStatusType.TO_REVIEW);
- logger.info("[{}] updating receipt with id {} to status {}",
+ logger.debug("[{}] updating receipt with id {} to status {}",
context.getFunctionName(), receipt.getId(), ReceiptStatusType.TO_REVIEW);
receiptOutputBinding.setValue(receipt);
} catch (ReceiptNotFoundException e) {
diff --git a/src/main/java/it/gov/pagopa/receipt/pdf/generator/RetryReviewedPoisonMessages.java b/src/main/java/it/gov/pagopa/receipt/pdf/generator/RetryReviewedPoisonMessages.java
index 211cdf2..83fd343 100644
--- a/src/main/java/it/gov/pagopa/receipt/pdf/generator/RetryReviewedPoisonMessages.java
+++ b/src/main/java/it/gov/pagopa/receipt/pdf/generator/RetryReviewedPoisonMessages.java
@@ -131,7 +131,7 @@ public void processRetryReviewedPoisonMessages(
private void updateReceiptToInserted(ExecutionContext context, String bizEventId) throws ReceiptNotFoundException, UnableToSaveException {
Receipt receipt = this.receiptCosmosService.getReceipt(bizEventId);
receipt.setStatus(ReceiptStatusType.INSERTED);
- logger.info("[{}] updating receipt with id {} to status {}", context.getFunctionName(), receipt.getId(), ReceiptStatusType.INSERTED);
+ logger.debug("[{}] updating receipt with id {} to status {}", context.getFunctionName(), receipt.getId(), ReceiptStatusType.INSERTED);
this.receiptCosmosService.updateReceipt(receipt);
}
}