Permalink
Browse files

add minor logging improvements

  • Loading branch information...
1 parent 076e49d commit 28dece2b40a773639bc2a44110a359279678c8a8 richard-jones committed Feb 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 sss/pylons_sword_controller.py
@@ -112,8 +112,10 @@ def manage_error(self, sword_error):
response.status_int = sword_error.status
ssslog.info("Returning error (" + str(sword_error.status) + ") - " + str(sword_error.error_uri))
if not sword_error.empty:
+ ssslog.debug("Returning error document: " + sword_error.error_document)
response.content_type = "text/xml"
return sword_error.error_document
+ ssslog.debug("Returning empty body in error response")
return
def _map_webpy_headers(self, headers):

0 comments on commit 28dece2

Please sign in to comment.