Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug 712430: add extra logging for HTTP 500 errors in balrog in the cl…

…ient, too. r=catlee
  • Loading branch information...
commit c9344f698447c3946b25d2d20fcb080a0f97cc2b 1 parent bebd465
@bhearsum bhearsum authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 auslib/client/base.py
View
10 auslib/client/base.py
@@ -1,5 +1,6 @@
from flask import Flask, make_response
+from auslib import version
from auslib.AUS import AUS3
app = Flask(__name__)
@@ -12,4 +13,13 @@ def fourohfour(error):
response.mimetype = 'text/xml'
return response
+@app.errorhandler(500)
+def isa(error):
+ log.error("Caught ISA 500 error.")
+ log.debug("Balrog version is: %s", version)
+ log.debug("Request path is: %s", request.path)
+ log.debug("Request environment is: %s", request.environ)
+ log.debug("Request headers are: %s", request.headers)
+ return error
+
from auslib.client.views.client import *
Please sign in to comment.
Something went wrong with that request. Please try again.