File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ export default async function bootstrap() {
15
15
const port = process . env . API_PORT || serverConfig . port ;
16
16
const logger = WinstonModule . createLogger ( LOGGER_CONFIG ) ;
17
17
18
- const options : NestApplicationOptions = { } ;
18
+ const options : NestApplicationOptions = {
19
+ logger,
20
+ } ;
21
+
19
22
if ( serverConfig . tls && serverConfig . tlsCert && serverConfig . tlsKey ) {
20
23
options . httpsOptions = {
21
24
key : JSON . parse ( `"${ serverConfig . tlsKey } "` ) ,
@@ -29,7 +32,6 @@ export default async function bootstrap() {
29
32
app . use ( bodyParser . urlencoded ( { limit : '512mb' , extended : true } ) ) ;
30
33
app . enableCors ( ) ;
31
34
app . setGlobalPrefix ( serverConfig . globalPrefix ) ;
32
- app . useLogger ( logger ) ;
33
35
34
36
if ( process . env . APP_ENV !== 'electron' ) {
35
37
SwaggerModule . setup (
You can’t perform that action at this time.
0 commit comments