Remove privacy redaction from Errors.toLogFormat

This commit is contained in:
Daniel Gasienica 2018-03-07 10:57:04 -05:00
parent e71246a9e3
commit 44b81f68dd
2 changed files with 22 additions and 19 deletions

View file

@ -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;
};