mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 06:35:37 +00:00
do not send password to loggly (#8887)
This commit is contained in:
parent
bf8b2db6b3
commit
95285cd85a
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ module.exports = function errorHandler (err, req, res, next) { // eslint-disable
|
|||
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
|
||||
headers: omit(req.headers, ['x-api-key', 'cookie', 'password', 'confirmPassword']), // don't send sensitive information that only adds noise
|
||||
body: req.body,
|
||||
httpCode: responseErr.httpCode,
|
||||
isHandledError: responseErr.httpCode < 500,
|
||||
|
|
|
|||
Loading…
Reference in a new issue