mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
log req.method
This commit is contained in:
@@ -66,6 +66,7 @@ module.exports = function errorHandler (err, req, res, next) { // eslint-disable
|
||||
|
||||
// log the error
|
||||
logger.error(err, {
|
||||
method: req.method,
|
||||
originalUrl: req.originalUrl,
|
||||
headers: omit(req.headers, ['x-api-key', 'cookie']), // don't send sensitive information that only adds noise
|
||||
body: req.body,
|
||||
|
||||
Reference in New Issue
Block a user