Add log level configuration

This commit is contained in:
Fabiano Martins 2025-02-06 00:32:04 -03:00
parent dc5c791fde
commit 653cecac6d
3 changed files with 3 additions and 1 deletions

View File

@ -3,3 +3,4 @@ services:
environment:
CHATFLUX_ENV: Production
NEW_RELIC_APP_NAME: "Production Evolution API"
LOG_LEVEL: "DEBUG"

View File

@ -3,3 +3,4 @@ services:
environment:
CHATFLUX_ENV: Staging
NEW_RELIC_APP_NAME: "Staging Evolution API"
LOG_LEVEL: "DEBUG"

View File

@ -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: {