diff --git a/server/src/utils/logger.ts b/server/src/utils/logger.ts index 2eaf76e..a1dffb7 100644 --- a/server/src/utils/logger.ts +++ b/server/src/utils/logger.ts @@ -23,19 +23,10 @@ const logger = winston.createLogger({ dirname: config.log.path, filename: 'combined.log', }), + new winston.transports.Console({ + format: winston.format.simple(), + }), ], }) -// -// If we're not in production then log to the `console` with the format: -// `${info.level}: ${info.message} JSON.stringify({ ...rest }) ` -// -if (process.env.NODE_ENV !== 'production') { - logger.add( - new winston.transports.Console({ - format: winston.format.simple(), - }) - ) -} - export default logger