suppress winston on polling

This commit is contained in:
Josh Harvey 2016-12-06 02:30:04 +02:00
parent 5f72139d53
commit d38ee58ec4
3 changed files with 16 additions and 8 deletions

View file

@ -1,11 +1,8 @@
const winston = require('winston')
var logLevel = typeof process.env.LAMASSU_ENV === 'string'
? process.env.LAMASSU_ENV
: 'info'
const options = require('./options')
const logger = new winston.Logger({
level: logLevel,
level: options.logLevel,
transports: [
new (winston.transports.Console)({timestamp: true, colorize: true})
]