mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
remove notLocalHost
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user