Skip to content
Snippets Groups Projects
Commit 1fb3c7f2 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

feat(logger): restrict logging for production

parent 404a6259
No related branches found
No related tags found
1 merge request!1251.14
......@@ -4,7 +4,10 @@ import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create(AppModule, {
logger:
process.env.NODE_ENV === 'production' ? ['error', 'warn', 'log'] : ['log', 'debug', 'error', 'verbose', 'warn'],
});
app.useGlobalPipes(new ValidationPipe());
const options = new DocumentBuilder()
.setTitle(`Res'in`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment