fixed error with setting the tx trans_id prefix

This commit is contained in:
John Dickinson 2011-05-12 10:48:46 -05:00
parent 4d3c76ab85
commit 119ad8cff5

View File

@ -32,8 +32,8 @@ class CatchErrorMiddleware(object):
def __call__(self, env, start_response):
trans_id = env.get('HTTP_X_TRANS_ID')
if not trans_id:
trans_id = uuid.uuid4().hex
env['HTTP_X_TRANS_ID'] = 'tx' + trans_id
trans_id = 'tx' + uuid.uuid4().hex
env['HTTP_X_TRANS_ID'] = trans_id
try:
def my_start_response(status, response_headers, exc_info=None):