Commit 3573f260 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use the app logger as default Logger

parent db55cdbb
Pipeline #2364 passed with stages
in 31 seconds
......@@ -10,7 +10,7 @@ import { AppLogger } from './app-logger';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
logger: false,
logger: new AppLogger(),
});
app.enableCors({ credentials: true, origin: true, exposedHeaders: 'Content-range' });
......@@ -34,8 +34,6 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
app.useLogger(app.get(AppLogger));
await app.listen(3000);
}
bootstrap();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment