Commit 9fa35605 authored by anton's avatar anton

configure log level

parent 6c640c4e
......@@ -11,6 +11,9 @@ const
primus = new Primus(server, { transformer: 'uws' }),
app = polka({ server })
winston.level = process.env.NODE_ENV === 'production' ? 'error' : 'info'
winston.level = process.env.LOG_LEVEL || winston.level
primus.on('connection', spark => {
winston.log('debug', `Spark ${spark.id} connected with address ${spark.address}`)
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment