Log levels added

This commit is contained in:
Pavel Gnedov 2022-05-01 23:33:07 +07:00
parent f111702c7c
commit 9d1d143e06

View file

@ -4,7 +4,9 @@ import { AppModule } from './app.module';
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = "0"; process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = "0";
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule, {
logger: ['debug', 'error', 'warn', 'log', 'verbose'],
});
await app.listen(process.env['PORT'] || 3000); await app.listen(process.env['PORT'] || 3000);
} }
bootstrap(); bootstrap();