suppress winston on polling
This commit is contained in:
parent
5f72139d53
commit
d38ee58ec4
3 changed files with 16 additions and 8 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue