mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-23 21:04:36 -05:00
fix(api): logging configs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user