Fix logger.level

This commit is contained in:
Rhys Arkins 2017-01-14 14:38:28 +01:00
parent 3a27f000a9
commit 7bcfc46879

View file

@ -1,10 +1,8 @@
const logger = require('winston');
// Set log level from environment. It may be overriden later by configuration
logger.level = process.env.LOG_LEVEL || 'info';
// Colorize console logs
logger.configure({
level: process.env.LOG_LEVEL || 'info',
transports: [
new (logger.transports.Console)({ colorize: true }),
],