1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 13:13:00 +01:00
send/server/log.js
Daniela Arcese 9026702e7b lint
2017-06-30 09:47:50 -07:00

13 lines
287 B
JavaScript

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