diff options
author | Ahmed Saidi <boussouira@users.noreply.github.com> | 2016-07-12 19:10:32 +0000 |
---|---|---|
committer | David Cramer <dcramer@gmail.com> | 2016-07-12 16:02:55 -0700 |
commit | 3c6496a0f5701608f86eaece2382e9f09a257540 (patch) | |
tree | e86098966f6f2dde121d54b6d18bca2c6d1efe29 | |
parent | 011da3976b6455a69e5196368a0b9b47f3928d31 (diff) | |
download | raven-3c6496a0f5701608f86eaece2382e9f09a257540.tar.gz |
Remove data from error message
data variable can contain a lot of information, sending along with the error
message will print too much informations
-rw-r--r-- | raven/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/raven/base.py b/raven/base.py index c07edce..bae7584 100644 --- a/raven/base.py +++ b/raven/base.py @@ -17,7 +17,6 @@ import uuid import warnings from datetime import datetime -from pprint import pformat from types import FunctionType if sys.version_info >= (3, 2): @@ -628,9 +627,10 @@ class Client(object): type(exc).__name__, exc.message) else: self.error_logger.error( - 'Sentry responded with an error: %s (url: %s)\n%s', - exc, url, pformat(data), - exc_info=True + 'Sentry responded with an error: %s (url: %s)', + exc, url, + exc_info=True, + extra={'data': data} ) self._log_failed_submission(data) |