projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
26fbaf4
)
Merge branch 'master' of https://code.grnet.gr/git/pithos
master
pithos/v0.11.0
author
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 26 Oct 2012 09:28:24 +0000
(12:28 +0300)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 26 Oct 2012 09:28:24 +0000
(12:28 +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
..
197156b
100644
(file)
--- a/
snf-pithos-app/pithos/api/util.py
+++ b/
snf-pithos-app/pithos/api/util.py
@@
-807,6
+807,7
@@
def get_backend():
backend = _pithos_backend_pool.pool_get()
backend.default_policy['quota'] = BACKEND_QUOTA
backend.default_policy['versioning'] = BACKEND_VERSIONING
+ backend.messages = []
return backend
@@
-918,6
+919,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)