Cleanup default values and leftover methods in environmentService (#4550)
* Cleanup default values and leftover methods in environmentService * Adress remainings configService calls
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { NestExpressApplication } from '@nestjs/platform-express';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
import * as Sentry from '@sentry/node';
|
||||
import { graphqlUploadExpress } from 'graphql-upload';
|
||||
@ -15,9 +16,11 @@ import { LoggerService } from './engine/integrations/logger/logger.service';
|
||||
import { EnvironmentService } from './engine/integrations/environment/environment.service';
|
||||
|
||||
const bootstrap = async () => {
|
||||
const environmentService = new EnvironmentService(new ConfigService());
|
||||
|
||||
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
|
||||
cors: true,
|
||||
bufferLogs: process.env.LOGGER_IS_BUFFER_ENABLED === 'true',
|
||||
bufferLogs: environmentService.get('LOGGER_IS_BUFFER_ENABLED'),
|
||||
rawBody: true,
|
||||
});
|
||||
const logger = app.get(LoggerService);
|
||||
|
||||
Reference in New Issue
Block a user