mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
feat: display stack trace on winston.error
This commit is contained in:
@@ -48,9 +48,9 @@ module.exports.app = app;
|
||||
|
||||
server.on('error', function (err) {
|
||||
if (err.code === 'EADDRINUSE') {
|
||||
winston.error('NodeBB address in use, exiting...', err);
|
||||
winston.error('NodeBB address in use, exiting...', err.stack);
|
||||
} else {
|
||||
winston.error(err);
|
||||
winston.error(err.stack);
|
||||
}
|
||||
|
||||
throw err;
|
||||
@@ -265,7 +265,7 @@ function listen(callback) {
|
||||
oldUmask = process.umask('0000');
|
||||
module.exports.testSocket(socketPath, function (err) {
|
||||
if (err) {
|
||||
winston.error('[startup] NodeBB was unable to secure domain socket access (' + socketPath + ')', err);
|
||||
winston.error('[startup] NodeBB was unable to secure domain socket access (' + socketPath + ')', err.stack);
|
||||
throw err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user