v1.18.x
Barış Soner Uşaklı 6 years ago
parent 5dbc7f032a
commit f4df89fe90

@ -32,9 +32,12 @@ winston.configure({
level: 'verbose', level: 'verbose',
format: winston.format.combine.apply(null, formats), format: winston.format.combine.apply(null, formats),
transports: [ transports: [
new winston.transports.Console(), new winston.transports.Console({
handleExceptions: true,
}),
new winston.transports.File({ new winston.transports.File({
filename: 'logs/webinstall.log', filename: 'logs/webinstall.log',
handleExceptions: true,
}), }),
], ],
}); });

@ -33,7 +33,9 @@ function setupWinston() {
level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'), level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'),
format: winston.format.combine.apply(null, formats), format: winston.format.combine.apply(null, formats),
transports: [ transports: [
new winston.transports.Console(), new winston.transports.Console({
handleExceptions: true,
}),
], ],
}); });
} }

@ -173,8 +173,8 @@ function setupMockDefaults(callback) {
function (next) { function (next) {
var groups = require('../../src/groups'); var groups = require('../../src/groups');
groups.resetCache(); groups.resetCache();
var posts = require('../../src/posts/cache'); var postCache = require('../../src/posts/cache');
posts.cache.reset(); postCache.reset();
next(); next();
}, },
function (next) { function (next) {

Loading…
Cancel
Save