mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-16 06:59:09 +00:00
FIX: conditionally importing apm
This commit is contained in:
+2
-2
@@ -1,4 +1,3 @@
|
||||
import 'elastic-apm-node/start';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
import { writeFileSync } from 'fs';
|
||||
@@ -10,11 +9,12 @@ import documentEmpty from '../swagger_empty.json';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
if (process.env.ENV !== 'local') await import('elastic-apm-node/start');
|
||||
|
||||
DadosferaLogger.setupLogger({
|
||||
serviceName: 'maestro',
|
||||
serviceEnvironment: process.env.ENV,
|
||||
});
|
||||
|
||||
const logger = new DadosferaLogger().logger;
|
||||
|
||||
const orginalWinstonLog = logger.log.bind(logger);
|
||||
|
||||
Reference in New Issue
Block a user