remove notLocalHost
This commit is contained in:
parent
529c6d0fe7
commit
5cd44be83c
9 changed files with 26 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue