projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb7875
)
Log 5xx API faults
author
Christos Stavrakakis
<cstavr@grnet.gr>
Thu, 11 Oct 2012 09:06:51 +0000
(12:06 +0300)
committer
Christos Stavrakakis
<cstavr@grnet.gr>
Thu, 11 Oct 2012 09:06:51 +0000
(12:06 +0300)
snf-pithos-app/pithos/api/util.py
patch
|
blob
|
history
diff --git
a/snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py
index
be785f9
..
5b15c6c
100644
(file)
--- a/
snf-pithos-app/pithos/api/util.py
+++ b/
snf-pithos-app/pithos/api/util.py
@@
-918,6
+918,8
@@
def api_method(http_method=None, format_allowed=False, user_required=True):
update_response_headers(request, response)
return response
except Fault, fault:
+ if fault.code >= 500:
+ logger.exception("API Fault")
return render_fault(request, fault)
except BaseException, e:
logger.exception('Unexpected error: %s' % e)