remove notLocalHost

This commit is contained in:
Danny Coates 2017-06-23 20:01:32 -07:00
parent 529c6d0fe7
commit 5cd44be83c
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 26 additions and 35 deletions

View file

@ -1,12 +1,12 @@
const conf = require('./config.js');
const notLocalHost = conf.notLocalHost;
const isProduction = conf.env === 'production'
const mozlog = require('mozlog')({
app: 'FirefoxFileshare',
level: notLocalHost ? 'INFO' : 'verbose',
fmt: notLocalHost ? 'heka' : 'pretty',
debug: !notLocalHost
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction
});
module.exports = mozlog;