Remove privacy redaction from Errors.toLogFormat
This commit is contained in:
parent
e71246a9e3
commit
44b81f68dd
2 changed files with 22 additions and 19 deletions
|
@ -1,9 +1,7 @@
|
|||
const ensureError = require('ensure-error');
|
||||
|
||||
const Privacy = require('../privacy');
|
||||
|
||||
// toLogFormat :: Error -> String
|
||||
exports.toLogFormat = (error) => {
|
||||
const normalizedError = ensureError(error);
|
||||
return Privacy.redactAll(normalizedError.stack);
|
||||
return normalizedError.stack;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue