fix backend
This commit is contained in:
@@ -46,13 +46,11 @@ const logger = winston.createLogger({
|
||||
],
|
||||
});
|
||||
|
||||
// If not in production, log to the console as well
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
logger.add(
|
||||
new winston.transports.Console({
|
||||
format: consoleFormat,
|
||||
})
|
||||
);
|
||||
}
|
||||
// Always log to console so errors are visible in `docker logs`
|
||||
logger.add(
|
||||
new winston.transports.Console({
|
||||
format: consoleFormat,
|
||||
})
|
||||
);
|
||||
|
||||
export default logger;
|
||||
|
||||
Reference in New Issue
Block a user