fix(api): logging configs
Some checks failed
CI - E2E - 3rd party donation tests / Build & Test (20.x) (push) Has been cancelled
CI - Node.js / Lint (20.x) (push) Has been cancelled
CI - Node.js / Build (20.x) (push) Has been cancelled
CI - Node.js / Test (20.x) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20.x) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20.x) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20.x) (push) Has been cancelled

This commit is contained in:
Mrugesh Mohapatra 2025-01-02 18:53:59 +05:30
parent 7bed7722b9
commit c2e1032e08
No known key found for this signature in database
3 changed files with 11 additions and 3 deletions

View File

@ -20,9 +20,11 @@ const envToLogger = {
ignore: 'pid,hostname'
}
},
level: FCC_API_LOG_LEVEL
level: FCC_API_LOG_LEVEL || 'info'
},
production: {
level: FCC_API_LOG_LEVEL || 'info'
},
production: { level: FCC_API_LOG_LEVEL },
test: undefined
};

View File

@ -6,3 +6,9 @@ services:
- ../../.env
ports:
- '3000:3000'
logging:
driver: 'local'
options:
max-size: '10m'
max-file: '3'
compress: 'true'

View File

@ -71,7 +71,7 @@ FCC_ENABLE_DEV_LOGIN_MODE=true
FCC_ENABLE_SHADOW_CAPTURE=false
FCC_ENABLE_EXAM_ENVIRONMENT=false
FCC_ENABLE_SENTRY_ROUTES=false
FCC_API_LOG_LEVEL=debug
FCC_API_LOG_LEVEL=info
# Email
# use ses in production