From 845b1df303259c0cffa5052e9c12863a59838f58 Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Tue, 23 Jul 2024 07:37:19 +0000 Subject: [PATCH] [PAGOPA-2296] log opt: update conf and verbose --- .github/workflows/deploy_with_github_runner.yml | 2 +- helm/Chart.yaml | 4 ++-- helm/values-dev.yaml | 2 +- helm/values-prod.yaml | 2 +- helm/values-uat.yaml | 2 +- host.json | 16 +++++++++++----- openapi/openapi.json | 2 +- openapi/openapi_node.json | 2 +- pom.xml | 2 +- .../engine/HttpTriggerGeneratePDFFunction.java | 2 +- 10 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy_with_github_runner.yml b/.github/workflows/deploy_with_github_runner.yml index 042ad78d..dffe0ed6 100644 --- a/.github/workflows/deploy_with_github_runner.yml +++ b/.github/workflows/deploy_with_github_runner.yml @@ -41,7 +41,7 @@ jobs: container_app_environment_name: ${{ vars.CONTAINER_APP_ENVIRONMENT_NAME }} resource_group_name: ${{ vars.CONTAINER_APP_ENVIRONMENT_RESOURCE_GROUP_NAME }} # RG of the runner pat_token: ${{ secrets.BOT_TOKEN_GITHUB }} - # self_hosted_runner_image_tag: "v1.4.1" + self_hosted_runner_image_tag: "latest" deploy: needs: [ create_runner ] diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 1dd1e9df..5823dcac 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopapdfengine description: Microservice description type: application -version: 0.128.0 -appVersion: 2.10.18 +version: 0.129.0 +appVersion: 2.10.19 dependencies: - name: microservice-chart version: 2.4.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 3a240ce9..f34c3cb6 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-pdf-engine - tag: "2.10.18" + tag: "2.10.19" 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 517fb48d..9fbd1522 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-pdf-engine - tag: "2.10.18" + tag: "2.10.19" 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 36f0ed4a..36136ba2 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: ghcr.io/pagopa/pagopa-pdf-engine - tag: "2.10.18" + tag: "2.10.19" 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 c627a642..89f49f7d 100644 --- a/host.json +++ b/host.json @@ -10,16 +10,22 @@ } }, "logging": { - "fileLoggingMode": "always", + "fileLoggingMode": "debugOnly", "logLevel": { - "default": "Information", + "default": "None", "Host.Results": "Error", - "Function": "Information", - "Host.Aggregator": "Trace" + "Function.generate-pdf": "Information", + "Microsoft": "Information", + "Worker": "Information", + "Host.Aggregator": "Error", + "Host": "Error" }, "applicationInsights": { "samplingSettings": { - "isEnabled": false + "isEnabled": true, + "maxTelemetryItemsPerSecond": 5, + "includedTypes": "PageView;Trace;Dependency;Request", + "excludedTypes": "Exception;Event;CustomEvent" } } } diff --git a/openapi/openapi.json b/openapi/openapi.json index 70697894..18f25281 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "OpenAPI definition - PDF Engine", - "version": "2.10.18" + "version": "2.10.19" }, "servers": [ { diff --git a/openapi/openapi_node.json b/openapi/openapi_node.json index 87017b2b..b04473aa 100644 --- a/openapi/openapi_node.json +++ b/openapi/openapi_node.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "OpenAPI definition - PDF Engine Node", - "version": "2.10.18" + "version": "2.10.19" }, "servers": [ { diff --git a/pom.xml b/pom.xml index b14b6a85..eb02ec03 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa pdf-engine - 2.10.18 + 2.10.19 jar pagopa-pdf-engine diff --git a/src/main/java/it/gov/pagopa/pdf/engine/HttpTriggerGeneratePDFFunction.java b/src/main/java/it/gov/pagopa/pdf/engine/HttpTriggerGeneratePDFFunction.java index c85398da..e43cf9ce 100644 --- a/src/main/java/it/gov/pagopa/pdf/engine/HttpTriggerGeneratePDFFunction.java +++ b/src/main/java/it/gov/pagopa/pdf/engine/HttpTriggerGeneratePDFFunction.java @@ -77,7 +77,7 @@ public HttpResponseMessage run( HttpRequestMessage> request, final ExecutionContext context) { - logger.debug("Generate PDF function called at {}", LocalDateTime.now()); + logger.info("Generate PDF function called at {}", LocalDateTime.now()); Optional optionalRequestBody = request.getBody(); if (optionalRequestBody.isEmpty()) {