Merge lp:~thomir-deactivatedaccount/adt-image-mapper/trunk-proagate-errors into lp:adt-image-mapper

Proposed by Thomi Richards
Status: Merged
Approved by: Thomi Richards
Approved revision: 7
Merged at revision: 7
Proposed branch: lp:~thomir-deactivatedaccount/adt-image-mapper/trunk-proagate-errors
Merge into: lp:adt-image-mapper
Diff against target: 10 lines (+1/-1)
1 file modified
adt_image_mapper/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/adt-image-mapper/trunk-proagate-errors
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+253426@code.launchpad.net

Commit message

Prevent flask from swallowing errors, so gunicorn can log them.

Description of the change

Prevent flask from swallowing errors, so gunicorn can log them.

To post a comment you must log in.
Revision history for this message
Celso Providelo (cprov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'adt_image_mapper/__init__.py'
2--- adt_image_mapper/__init__.py 2015-03-16 21:00:16 +0000
3+++ adt_image_mapper/__init__.py 2015-03-18 19:44:26 +0000
4@@ -65,7 +65,7 @@
5 response = flask.jsonify(error.to_dict())
6 response.status_code = error.status
7 return response
8-
9+ app.config['PROPAGATE_EXCEPTIONS'] = True
10 return app
11
12

Subscribers

People subscribed via source and target branches

to all changes: