Changing default log levels for app
This commit is contained in:
parent
2f9549adef
commit
00ffff7d6a
1 changed files with 4 additions and 1 deletions
|
|
@ -7,7 +7,10 @@ import { CustomResponseTransformInterceptor } from './common/customResponse'
|
|||
import { setDefaults } from './common/dayjs'
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule, { abortOnError: false })
|
||||
const app = await NestFactory.create(AppModule, {
|
||||
abortOnError: false,
|
||||
logger: ['error', 'warn', 'log'],
|
||||
})
|
||||
const config = app.get(ConfigService)
|
||||
const port = config.get('PORT', 3000)
|
||||
app.enableShutdownHooks()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue