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 (
|
this.message = statusCode + ' - ' + (JSON && JSON.stringify ? JSON.stringify(body) : body); |
). This creates problems as we need to intercept this and remove it from the message.
Would it be possible to add an option to disable this behaviour (as the body is still acceptable on the error object)?
Hello,
We have quite strict data-protection requirements regarding what can be logged to disk. When a
StatusCodeErroris logged, the error is currently thrown with a message which contains the whole stringified body (promise-core/lib/errors.js
Line 26 in c377e5c
Would it be possible to add an option to disable this behaviour (as the body is still acceptable on the error object)?