mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #6840
This commit is contained in:
@@ -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',
|
||||
handleExceptions: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
@@ -33,7 +33,9 @@ function setupWinston() {
|
||||
level: nconf.get('log-level') || (global.env === 'production' ? 'info' : 'verbose'),
|
||||
format: winston.format.combine.apply(null, formats),
|
||||
transports: [
|
||||
new winston.transports.Console(),
|
||||
new winston.transports.Console({
|
||||
handleExceptions: true,
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user