mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
Provide more error information to logs
Provides full stack instead of just message
This commit is contained in:
@@ -132,7 +132,7 @@ module.exports = function (middleware) {
|
||||
try {
|
||||
p = decodeURIComponent(p);
|
||||
} catch (err) {
|
||||
winston.error(err.message);
|
||||
winston.error(err);
|
||||
p = '';
|
||||
}
|
||||
p = validator.escape(String(p));
|
||||
|
||||
Reference in New Issue
Block a user