1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 07:39:44 +02:00

fix: Use custom logger only for production

This commit is contained in:
Maksim Eltyshev 2022-08-23 20:45:42 +02:00
parent 55d07b4560
commit 07867fc0b2
5 changed files with 26 additions and 27 deletions

View file

@ -14,7 +14,7 @@ const logfile = `${process.cwd()}/logs/planka.log`;
* Refer {@link https://github.com/winstonjs/winston#logging here}
* for more information on Winston log levels.
*/
const logLevel = process.env.NODE_ENV === 'production' ? 'info' : 'debug';
const logLevel = 'warn'; // process.env.NODE_ENV === 'production' ? 'info' : 'debug';
const logFormat = winston.format.combine(
winston.format.uncolorize(),