support logLevel config

This commit is contained in:
Josh Harvey 2016-06-13 14:51:22 +03:00
parent 8111d89c6c
commit b6754d1752
2 changed files with 3 additions and 3 deletions

View file

@ -7,6 +7,8 @@ var createServer = require('../lib/app.js')
var argv = require('minimist')(process.argv.slice(2))
var options = require('../lib/options')
process.env.LAMASSU_ENV = process.env.LAMASSU_ENV || options.logLevel
var port = process.env.PORT || 3000
var httpOnly = options.httpOnly || argv.http