From 653cecac6d4d3ee036ab46c74c12752683071c73 Mon Sep 17 00:00:00 2001 From: Fabiano Martins Date: Thu, 6 Feb 2025 00:32:04 -0300 Subject: [PATCH] Add log level configuration --- docker-compose.production.yml | 1 + docker-compose.staging.yaml | 1 + newrelic.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.production.yml b/docker-compose.production.yml index 0463034a..00ba4613 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -3,3 +3,4 @@ services: environment: CHATFLUX_ENV: Production NEW_RELIC_APP_NAME: "Production Evolution API" + LOG_LEVEL: "DEBUG" diff --git a/docker-compose.staging.yaml b/docker-compose.staging.yaml index 28364812..c5c414c1 100644 --- a/docker-compose.staging.yaml +++ b/docker-compose.staging.yaml @@ -3,3 +3,4 @@ services: environment: CHATFLUX_ENV: Staging NEW_RELIC_APP_NAME: "Staging Evolution API" + LOG_LEVEL: "DEBUG" diff --git a/newrelic.js b/newrelic.js index dfc6320d..7b037470 100644 --- a/newrelic.js +++ b/newrelic.js @@ -2,7 +2,7 @@ exports.config = { app_name: [`${process.env.CHATFLUX_ENV} Evolution API`], license_key: process.env.NEW_RELIC_LICENSE_KEY, logging: { - level: 'trace' + level: process.env.LOG_LEVEL }, allow_all_headers: true, attributes: {