-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Bump MajorBump major version once releasedBump major version once released
Description
Hello,
We have quite strict data-protection requirements regarding what can be logged to disk. When a StatusCodeError is logged, the error is currently thrown with a message which contains the whole stringified body (
Line 26 in c377e5c
| this.message = statusCode + ' - ' + (JSON && JSON.stringify ? JSON.stringify(body) : body); |
Would it be possible to add an option to disable this behaviour (as the body is still acceptable on the error object)?
Metadata
Metadata
Assignees
Labels
Bump MajorBump major version once releasedBump major version once released