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,6 +1,8 @@
const fs = require('fs')
const path = require('path')
const os = require('os')
const _ = require('lodash/fp')
const argv = require('minimist')(process.argv.slice(2))
let serverConfig
@ -17,4 +19,7 @@ try {
}
}
module.exports = serverConfig
const defaults = {logLevel: 'info'}
const commandLine = {logLevel: argv.logLevel}
module.exports = _.mergeAll([defaults, serverConfig, commandLine])