Commit Graph

1009 Commits

Author SHA1 Message Date
Armin Ronacher 865b3f9ab4 Support exceptions without stacktraces.
This fixes #741
2016-03-07 21:07:14 +01:00
David Cramer 110344408c Dont implicitly configure log handlers
Because of the way logging propagation works this is complicated to ensure it's intelligent. Let's leave it up to the user to ensure LOGGING is configured appropriately for their application.
2016-02-23 16:21:02 -08:00
Matt Robenolt 97ab6beff5 Fix misleading docstring 2016-02-19 14:05:50 -08:00
Armin Ronacher d6caa99bfd Handle exc_info is True. This fixes #735 2016-02-12 09:48:54 -08:00
Armin Ronacher dfd81a538c More info into the exception info key 2016-01-27 19:22:55 -08:00
Armin Ronacher d77dec802d Improved error key 2016-01-27 15:28:21 -08:00
Armin Ronacher 3e14b36050 Merge pull request #726 from radzinzki/allow_exclude_list_on_creation
Allow logging exclusions during object creation and `init_app`
2016-01-27 15:06:50 -08:00
Armin Ronacher 27cc40e6d5 Remember exceptions that are logged and filter out duplicates.
This fixes #724
2016-01-27 15:03:21 -08:00
Arnav Kumar 615fa4c609 Allow logging exclusions during object creation and `init_app` 2016-01-25 12:08:36 +08:00
James O'Beirne d0adbbf208 Update __init__.py 2016-01-22 17:44:10 -08:00
James O'Beirne 4fd846a84d Remove unnecessary/confusing logger variable in celery 2016-01-22 16:50:50 -08:00
David Cramer f83aedbdeb Enforce raven.events import at runtime 2016-01-22 13:31:15 -08:00
Armin Ronacher bb2cd9fc15 Fixed missign user behavior in Django to be in line of what we did earlier. 2016-01-21 11:03:34 -08:00
Armin Ronacher 005a6d9d3d Fixed a regression in key handling in the sanitizer. 2016-01-21 10:38:47 -08:00
Armin Ronacher 475d379f09 Duck-type check the user object instead of doing an instance check. This fixes #718 2016-01-21 09:31:07 -08:00
Armin Ronacher 54192ad2df Fix non ascii bytes in password sanitization. This fixes #727 2016-01-21 09:26:31 -08:00
David Cramer ab4177b57b Defer client loading in Django log handler (fixes GH-701) 2016-01-21 09:22:15 -08:00
Sander Hoentjen e1390b827f remove unneeded shebang 2016-01-16 19:10:57 +01:00
Armin Ronacher 0a2f65df9e Restored template error handling for Django 1.9 and newer. 2016-01-13 22:50:24 +01:00
Armin Ronacher 8755ce3b64 Merge pull request #722 from sabricot/disable_ssl_certs_PEP467
Fix disabling of ssl certs check with python 2.7.9/3.4.3 and sync/threaded transport
2016-01-13 22:44:55 +01:00
sabricot 168ffa2e13 Fix disabling of ssl certs check with python 2.7.9/3.4.3 2016-01-13 16:10:03 +00:00
Armin Ronacher 206f233ef9 Restored broken import 2016-01-13 13:27:44 +01:00
Armin Ronacher 97e93ea7ba Strip six module and rename to raven._compat
We're seeing some odd issues with our six module interacting
badly with the six module from other libraries for some users.
The suspicion is that our six module in some cases gets unvendored.
We thus rename it to `raven._compat` (which is also what some
other Python modules do).  We still use six normally for the
tests.
2016-01-12 21:40:51 +01:00
Matt Robenolt f2eedb742c Alias import to prevent attribute lookup 2016-01-11 22:39:52 -08:00
Jonas Obrist db96b5b312 Do not capture tornado.web.HTTPErrors if their status code is not 5xx 2016-01-12 15:27:10 +09:00
David Cramer 775e7e2340 Correct memoize behavior 2016-01-08 14:20:16 -08:00
Matt Robenolt 2f6fc1410e django: ignore a missing settings.SITE_ID
SITE_ID isn't required to exist or to be set, so just ignore it.

Fixes GH-712
2015-12-31 15:29:12 -05:00
Kieran Brownlees 18579dd596 Store user information if AbstractBaseUser doesn't exist
The previous fix had the side effect of stopping user information
being stored when AbstractBaseUser doesn't exist since the else
clause would never be executed.

Actually fixes #705
2015-12-18 09:48:54 +13:00
Kieran Brownlees f39b68f3f7 Catch the RuntimeError raised if contentypes is not available
In Django 1.9 it became an error to import a model of an app
before it is loaded (https://docs.djangoproject.com/en/1.9/releases/1.9/#features-removed-in-1-9)

This means the import of the user model may fail if the contenttype
or user contrib applications are not in INSTALLED_APPS.

Fixes #705
2015-12-17 10:54:57 +13:00
David Cramer c4b96d74c3 Add environment support 2015-12-10 12:06:54 -08:00
David Cramer 02862d64c7 Support tags on root logging handler 2015-12-10 11:57:47 -08:00
David Cramer 6063125f9c Cache wsgi property (fixes GH-677) 2015-12-10 11:15:23 -08:00
David Cramer 8804d1b8fe Merge pull request #697 from getsentry/certificates
Update cacertificate bundle with latest from Mozilla
2015-12-10 11:14:12 -08:00
David Cramer 2c9d3c60e8 Merge pull request #699 from CGenie/django-tags
Django handler: add support for tags in logging setup
2015-12-10 11:13:48 -08:00
Armin Ronacher 6f0ad8232a Spawn new thread for different pid
This spawns a thread again first time on queue if the process was forked
by the time the enqueueing happened.
2015-12-10 20:09:56 +01:00
Przemek Kaminski 546aa3afc7 Django handler: add support for tags in logging setup 2015-12-04 21:44:47 +01:00
Matt Robenolt b0e8a20a10 Update cacertificate bundle with latest from Mozilla 2015-12-03 13:23:02 -08:00
David Cramer 747ad0dda1 Support SENTRY_RELEASE in Flask (fixes GH-687) 2015-11-30 11:03:08 -08:00
David Cramer cc67f53f91 Merge pull request #694 from ovidner/master
Support detached HEAD in fetch_git_sha
2015-11-24 11:43:05 -08:00
Olle Vidner 1454412df9 #676: Support detached HEAD 2015-11-21 22:17:18 +01:00
Anton Blintsov 9db4e7aba9 Modify client.capture_exceptions to return both decorator and context manager 2015-11-21 17:47:20 +03:00
Armin Ronacher 80b24acc33 Extension to #686 to also log keyboard interrupts. 2015-11-13 08:32:20 +01:00
Matt Robenolt 3eddaa4dff Log SystemExit in wsgi middleware when code != 0
SystemExit does not subclass Exception, so we don't catch this.
SystemExit manifests itself (at least) from gunicorn when gunicorn
attempts to gracefully shut down a worker process. See GH-675 for more
background.

Fixes: GH-675
2015-11-12 17:20:16 -08:00
Matt Robenolt 1a7fda8491 Ignore bodies from GET and HEAD 2015-11-04 15:47:57 -08:00
Matthias Erll de38ac6718 Handle non-text dictionary keys when sanitizing data. 2015-10-30 10:04:51 +01:00
David Cramer a93f8201fe Switch source reading to linecache 2015-10-22 20:45:53 +01:00
David Cramer c0726143cb Only convert DSN to string in Python 2.x (fixes GH-674) 2015-10-19 21:40:10 -07:00
David Cramer 5a16f7f012 Convert input DSN values to strings (fixes GH-653) 2015-10-19 15:37:57 -07:00
David Cramer 8038eff323 Add support for in_app on exception frames 2015-10-19 15:04:58 -07:00
Axel Haustant 9614a709d2 Try to detect version with pkg_resources first 2015-10-19 12:00:50 +02:00