fix backend

This commit is contained in:
Matthias Hochmeister
2026-02-27 20:46:21 +01:00
parent 8b3842a9fc
commit d7a0d18899
2 changed files with 9 additions and 8 deletions

View File

@@ -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;