Complete Sentry integration (#1546)

This commit is contained in:
Charles Bochet
2023-09-11 15:07:30 -07:00
committed by GitHub
parent 35bcef5090
commit 7621854d4b
13 changed files with 164 additions and 67 deletions

View File

@ -9,6 +9,7 @@ import { AppModule } from './app.module';
import { settings } from './constants/settings';
import { LoggerService } from './integrations/logger/logger.service';
import { EnvironmentService } from './integrations/environment/environment.service';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
@ -35,8 +36,9 @@ async function bootstrap() {
);
const loggerService = app.get(LoggerService);
app.useLogger(loggerService);
app.useLogger(app.get(EnvironmentService).getLogLevels());
await app.listen(3000);
await app.listen(app.get(EnvironmentService).getPort());
}
bootstrap();