mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-05 21:04:28 +08:00
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
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:
parent
7bed7722b9
commit
c2e1032e08
@ -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
|
||||
};
|
||||
|
||||
|
||||
@ -6,3 +6,9 @@ services:
|
||||
- ../../.env
|
||||
ports:
|
||||
- '3000:3000'
|
||||
logging:
|
||||
driver: 'local'
|
||||
options:
|
||||
max-size: '10m'
|
||||
max-file: '3'
|
||||
compress: 'true'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user