mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01: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