Commit Graph

14 Commits

Author SHA1 Message Date
Sven-Hendrik Haase 4934771b3f Fixes #412 and also enable python 3.4 testing with flask 2015-03-30 17:20:04 +02:00
Brandon Adams 0dc9660634 let flask wrapper configure tags via SENTRY_TAGS 2014-10-17 11:12:10 -05:00
David Cramer 0f92360fe9 Only catch Exception 2014-09-21 20:16:26 -07:00
Isaac Cook 0a25979c28 Use logging kwarg in init_app for Flask contrib 2014-09-13 17:28:16 -05:00
David Cramer 5942a1128d Dont fail when last_event_id is unavailable (fixes GH-483) 2014-09-08 11:35:13 -07:00
Axel Haustant b8ee887fb6 Store the last event id in g.sentry_event_id if possible 2014-08-09 15:20:32 +02:00
Axel Haustant ec6aa193a9 Expose constructor parameters in lazy init_app 2014-08-09 14:33:59 +02:00
Axel Haustant d12aa49771 Expose auto_log_stacks option in Flask extension 2014-08-09 14:33:59 +02:00
David Cramer b629d5ce42 Gracefully handle disabled clients 2014-05-18 01:19:54 -07:00
Alex Gaynor c0dedcd29d Fixed several typos 2014-05-10 11:14:16 -07:00
Felipe Prenholato 6486715a12 Use flask request_finished signal to add X-Sentry-ID in flask responses. 2014-04-14 16:47:16 -03:00
David Cramer 38c0d17bd4 Add last_event_id to Sentry app (Flask) 2014-04-14 11:30:59 -07:00
peterdemin a9d8bd2d55 Make use of flask.current_app context local
Flask extension development guide

(http://flask.pocoo.org/docs/extensiondev/#the-extension-code)

suggests using current_app instead of storing app on self during initialisation.

Here's citation:

   Note on ``init_app``

   As you noticed, ``init_app`` does not assign ``app`` to ``self``.  This
   is intentional!  Class based Flask extensions must only store the
   application on the object when the application was passed to the
   constructor.  This tells the extension: I am not interested in using
   multiple applications.

   When the extension needs to find the current application and it does
   not have a reference to it, it must either use the
   :data:`~flask.current_app` context local or change the API in a way
   that you can pass the application explicitly.
2013-12-11 22:02:38 +04:00
David Cramer 622a7f7f0b Overhaul Flask implementation 2013-12-05 12:02:56 -08:00