feat: display stack trace on winston.error

This commit is contained in:
Barış Soner Uşaklı
2020-06-20 23:32:12 -04:00
parent 55f8f99bcd
commit e80379dc0e
31 changed files with 43 additions and 44 deletions

View File

@@ -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));