mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 01:55:56 +02:00
feat: display stack trace on winston.error
This commit is contained in:
@@ -113,7 +113,7 @@ module.exports = function (middleware) {
|
||||
try {
|
||||
p = utils.slugify(decodeURIComponent(p));
|
||||
} catch (err) {
|
||||
winston.error(err);
|
||||
winston.error(err.stack);
|
||||
p = '';
|
||||
}
|
||||
p = validator.escape(String(p));
|
||||
|
||||
Reference in New Issue
Block a user