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:
parent
55d07b4560
commit
07867fc0b2
5 changed files with 26 additions and 27 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue