@ -32,9 +32,12 @@ winston.configure({
level: 'verbose',
format: winston.format.combine.apply(null, formats),
transports: [
new winston.transports.Console(),
new winston.transports.Console({
handleExceptions: true,
}),
new winston.transports.File({
filename: 'logs/webinstall.log',
],
});
@ -33,7 +33,9 @@ function setupWinston() {
level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'),
}
@ -173,8 +173,8 @@ function setupMockDefaults(callback) {
function (next) {
var groups = require('../../src/groups');
groups.resetCache();
var posts = require('../../src/posts/cache');
posts.cache.reset();
var postCache = require('../../src/posts/cache');
postCache.reset();
next();
},