Remove privacy redaction from `Errors.toLogFormat`
parent
e71246a9e3
commit
44b81f68dd
@ -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…
Reference in New Issue