summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed Saidi <boussouira@users.noreply.github.com>2016-07-12 19:10:32 +0000
committerDavid Cramer <dcramer@gmail.com>2016-07-12 16:02:55 -0700
commit3c6496a0f5701608f86eaece2382e9f09a257540 (patch)
treee86098966f6f2dde121d54b6d18bca2c6d1efe29
parent011da3976b6455a69e5196368a0b9b47f3928d31 (diff)
downloadraven-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.py8
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)