mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
feat: display stack trace on winston.error
This commit is contained in:
@@ -113,7 +113,7 @@ function addProcessHandlers() {
|
||||
process.on('SIGINT', shutdown);
|
||||
process.on('SIGHUP', restart);
|
||||
process.on('uncaughtException', function (err) {
|
||||
winston.error(err);
|
||||
winston.error(err.stack);
|
||||
|
||||
require('./meta').js.killMinifier();
|
||||
shutdown(1);
|
||||
|
||||
Reference in New Issue
Block a user