Commit Graph

419 Commits

Author SHA1 Message Date
Armin Ronacher d6caa99bfd Handle exc_info is True. This fixes #735 2016-02-12 09:48:54 -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 0de40e8e19 Add test for excluding loggers during setup with Flask 2016-01-25 12:10:17 +08:00
Armin Ronacher d3c1c1fcb6 Added test from #728 2016-01-21 09:33:31 -08:00
Armin Ronacher 641254162c Stop using deprecated patterns() function 2016-01-14 00:31:16 +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 fb0b53a66f Make tests work with newer Django 2016-01-13 17:32:32 +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
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 95220c99ae Remove use of check_output (not in Py2.6) 2015-12-10 11:24:52 -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
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 5be739c331 Add tests 2015-11-12 17:41:12 -08:00
Matthias Erll de38ac6718 Handle non-text dictionary keys when sanitizing data. 2015-10-30 10:04:51 +01:00
David Cramer 8038eff323 Add support for in_app on exception frames 2015-10-19 15:04:58 -07:00
Ritesh Kadmawala 0bb58608ab - Ensuring user info is returned properly if SENTRY_USER_ATTRS are provided 2015-10-15 17:58:55 +05:30
Matt Robenolt d3b2fb63a4 Support `fingerprint` through logging handler
Fixes GH-661
2015-09-18 15:55:32 -07:00
David Cramer e29c6e9b8b Various fixes for Python3 / versioning 2015-09-16 15:17:30 -07:00
David Cramer 3e5ae0c9bf Python 3 compatibility (refs GH-659) 2015-09-16 14:56:03 -07:00
Antonis Kalipetis f19287da47 Added test for correct git SHA
The default behavior of `fetch_git_sha` should be to fetch the SHA of the active branch - if any - and not the master branch.
2015-09-14 17:38:18 +03:00
David Cramer 6a84d48564 Remove is_authenticated property (excl. Tornado) 2015-09-10 16:07:29 -05:00
Joakim Recht 5d4326095a Fix the Tornado transport, arguments were in wrong order.
Also, add tests to ensure that it actually works.
2015-09-04 09:50:47 +02:00
David Cramer 1a9877a8e0 Merge pull request #647 from getsentry/improve-stack-slimming
Improve stack slimming
2015-08-31 15:36:29 -07:00
David Cramer cd9a8b256f Improve stacktrace truncation code
- Update stacktrace truncation code to match server behavior (and defaults)
- Ensure maximum length of each set of variables
2015-08-31 15:35:52 -07:00
Joakim Recht e97071ae84 Fix Tornado error handling.
The error handling was quite broken - the exception handlers were never invoked, and they used methods which have been removed.

This fixes #601
2015-08-28 21:40:36 +02:00
David Cramer 6d0d0d5de0 Correct fingerprint behavior 2015-08-26 11:51:06 -07:00
David Cramer a76101f1fe Dont base64-encode bodies
- Send deflate content-encoding
2015-08-26 11:47:13 -07:00
David Cramer 37eb1e8ef6 Remove various deprecated behaviors 2015-07-15 23:14:36 -07:00
David Cramer 87b2034197 Handle unicode strings with import_string (refs GH-627) 2015-07-13 02:38:18 -07:00
David Cramer 62dc112cee Fix various py3 compatibility (refs GH-625) 2015-07-12 11:24:36 -06:00
David Cramer cd8c6dee64 Fix various py3 compatibility (refs GH-625) 2015-07-12 08:56:37 -06:00
David Cramer 468bc4e6c0 Support transport option in Flask/Django (fixes GH-623) 2015-07-11 00:10:45 -06:00
David Cramer d3623e897d Remove scheme checking behavior 2015-07-10 11:59:34 -06:00
David Cramer 58292d33f3 Add test showing failure 2015-07-10 11:54:18 -06:00
Matt Robenolt ceff7c96f2 Fix `has_git_requirements` check in tests 2015-07-06 23:00:36 -04:00
Adam Renberg 04d1fd2408 Sanitize access_token values by default 2015-06-03 16:51:08 +02:00
David Cramer 12bb737707 Refactor DSN and transport configuration
Passing a transport via a scheme prefix is now deprecated in favor of explicit class loading:

>>> Client(dsn, transport=HttpTransport)

Additionally DSN-related configuration is now held in the RemoteConfig helper, which is bound on Client.remote.

Fixes GH-587
2015-05-21 17:25:24 -07:00
David Cramer 23bd04541d Skip git test when missing required file 2015-05-21 17:25:16 -07:00
David Cramer d550a39d26 Correct test to handle py3 2015-04-30 13:21:52 -07:00
David Cramer b149369889 Improve failure handling and logging 2015-04-29 17:42:20 -07:00
David Cramer c57658ffd0 Add test confirming real gettext functions 2015-04-28 11:57:10 -07:00
Samuel Colvin cec2291842 json encoding for Decimals and lazy translations 2015-04-28 19:44:52 +01:00
David Cramer 6d85f0981c Add python version to packages (fixes GH-602) 2015-04-23 15:31:55 -07:00
Sven-Hendrik Haase 4934771b3f Fixes #412 and also enable python 3.4 testing with flask 2015-03-30 17:20:04 +02:00
David Cramer acfbd2bb58 Explicit stop in child process 2015-03-29 12:52:22 -07:00
David Cramer 95c704f127 Remove deprecated manual configuration for remotes 2015-03-29 12:00:41 -07:00
David Cramer 5fe0fccced Improve reliability of fork test 2015-03-29 11:43:31 -07:00
David Cramer 1deda056ce Remove Sentry integrated client 2015-03-29 11:37:51 -07:00