Commit Graph

37 Commits

Author SHA1 Message Date
David Cramer b9bd240a79 Merge branch 'raise_send_errors' of https://github.com/richg/raven-python into richg-raise_send_errors
Conflicts:
	raven/base.py
	raven/contrib/django/client.py
	raven/handlers/logbook.py
	raven/handlers/logging.py
	tests/handlers/logging/tests.py
2014-05-22 00:25:46 -07:00
David Cramer 39c65bf8b5 Update interfaces to use protocol 5/aliases 2014-05-20 12:02:18 -07:00
Matt Robenolt 9338e3307b Fix Django tests 2014-04-13 17:55:35 -04:00
Matt Robenolt 68c576d537 Explicitly catch AttributeError 2014-04-11 09:50:29 -04:00
David Cramer 4871a0be32 More fixes for binding stacktrace to exception 2013-12-17 01:58:53 -08:00
Xavier Ordoquy 6128b576d8 Also handle the case were it's no a POST. 2013-09-10 14:51:06 +02:00
Xavier Ordoquy b7da8a6a2e Just in case POST fails. 2013-09-10 14:43:52 +02:00
steven ed45d7aaa0 Fixed data retrieval get_data_from_request 2013-09-10 15:26:48 +07:00
Xavier Ordoquy fa704c2455 Reintroduced the is_authenticated for Django users to preserve the backward compatibility. 2013-08-09 10:05:13 +02:00
David Cramer 740d9e06b0 optimize site import 2013-06-15 14:02:30 -07:00
David Cramer 386a324bca Support custom user objects (for Django 1.5) 2013-06-15 11:59:00 -07:00
David Cramer 15692c71e0 Move request threadlocal extraction for Django into Client 2013-05-22 11:28:08 -07:00
Xavier Ordoquy 612efcd3cf Workaround the hasattr behavior change between python 2 and 3. 2013-05-19 13:43:03 +02:00
David Cramer f6b43f2df3 Reimplement Django's old get_host 2013-05-06 13:40:42 -07:00
David Cramer a6f501649c Pull in some level of HTTP data even when Django bails on get_host 2013-05-06 10:48:04 -07:00
David Cramer e93b64da92 minor style cleanup 2013-04-22 21:27:59 -07:00
Xavier Ordoquy 8bba42b4d5 Use new style exceptions. 2013-03-17 09:11:26 +01:00
David Cramer 27db0ad966 Correctly handle Django SuspiciousOperation in request.build_absolute_uri 2013-02-25 05:07:05 -08:00
David Cramer d7efd37cad raw_post_body compatibility 2013-02-08 01:06:18 -08:00
David Cramer 0adc443523 Merge pull request #255 from koordinates/djangoSiteFallback
Django: improvements around Site tag
2013-02-07 16:30:54 -08:00
Robert Coup d8b4ef027f Address review issues 2013-02-08 13:15:36 +13:00
Robert Coup fa3b1c8ac5 Django: Save an extra (potential) DB lookup if SENTRY_SITE is set by not looking up django.contrib.sites. Catch any errors looking up the django.contrib.sites model, falling back to settings.SITE_ID. 2013-02-08 13:02:09 +13:00
David Cramer f3b0b21487 Improve how we label unknown functions and modules, and remove the function from the include path detection 2013-02-07 11:40:48 -08:00
Omar Khan 82fcc3b5fc Fix django logging handler circular import bug 2013-01-16 14:17:31 +00:00
Roland van Laar c5d2d16d90 Fix client.py to return the site name.
If the site name is not defined the domain name is returned.
2013-01-09 22:41:31 +01:00
David Cramer 678c96dd2a Remove site from top-level and automatically add it to tags when present 2013-01-09 12:03:45 -08:00
Richard Graham 590b7254c6 Add `raise_send_errors` flag to the base `Client`.
This indicates whether the client will handle or raise any exceptions encountered while sending to Sentry.
* The default value (False) matches the current behaviour in which the client handles the error.
* Setting this argument to True allows for the calling application to handle the exception and
  thus determine its own retry and backoff strategies.
2013-01-08 08:46:14 +02:00
David Cramer 48b47ef698 Dont override existing in_app value (future proof) 2012-12-11 21:41:00 -08:00
David Cramer ae307b251a Mark Django frames as outside of the application 2012-12-11 21:40:40 -08:00
David Cramer 53658ad6db Always return a bool from is_enabled 2012-10-30 21:06:15 -07:00
David Cramer 13260b0f5b its not 2010 anymore 2012-10-12 10:45:59 -07:00
David Cramer 9ebb576113 Dont error when there is no result to attach to the request 2012-10-04 18:44:09 -07:00
David Cramer 8192121da7 Support correctly disabling the Raven client with an empty dsn value 2012-08-06 20:03:26 -07:00
David Cramer 24df7cc49c Pep8 changes 2012-06-03 12:41:25 -07:00
David Cramer f0810bb10c Do not send data if its not a POST request 2012-02-13 14:03:11 -08:00
David Cramer 14c90228eb Ensure we log tracebacks when Django client errors 2012-02-05 13:14:51 -08:00
David Cramer 66aa487247 Cleanup imports for Django client 2012-02-04 19:27:13 -08:00