Skip to content

Commit

Permalink
add minor logging improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-jones committed Feb 21, 2012
1 parent 076e49d commit 28dece2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sss/pylons_sword_controller.py
Expand Up @@ -112,8 +112,10 @@ def manage_error(self, sword_error):
response.status_int = sword_error.status response.status_int = sword_error.status
ssslog.info("Returning error (" + str(sword_error.status) + ") - " + str(sword_error.error_uri)) ssslog.info("Returning error (" + str(sword_error.status) + ") - " + str(sword_error.error_uri))
if not sword_error.empty: if not sword_error.empty:
ssslog.debug("Returning error document: " + sword_error.error_document)
response.content_type = "text/xml" response.content_type = "text/xml"
return sword_error.error_document return sword_error.error_document
ssslog.debug("Returning empty body in error response")
return return


def _map_webpy_headers(self, headers): def _map_webpy_headers(self, headers):
Expand Down

0 comments on commit 28dece2

Please sign in to comment.