mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Convert classes to use Babel syntax
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
// Logger utility
|
||||
// TODO remove winston-mail and winston-newrelic if not used
|
||||
let winston = require('winston');
|
||||
let nconf = require('nconf');
|
||||
import winston from 'winston';
|
||||
import nconf from 'nconf';
|
||||
|
||||
// TODO use const?
|
||||
// TODO move isProd to a single location
|
||||
let isProd = nconf.get('NODE_ENV') === 'production';
|
||||
const isProd = nconf.get('NODE_ENV') === 'production';
|
||||
|
||||
let logger = new winston.Logger();
|
||||
|
||||
@@ -19,4 +16,4 @@ if (isProd) {
|
||||
.add(winston.transports.Console);
|
||||
}
|
||||
|
||||
module.exports = logger;
|
||||
export default logger;
|
||||
|
||||
Reference in New Issue
Block a user