fixing top level exception catch and critical log

Change-Id: I2a7ace9ae5fe254071d9d51e30d5a67bd29edd68
This commit is contained in:
adriant
2014-07-31 13:03:47 +12:00
parent 09712a7291
commit e55d329a2a

View File

@@ -213,9 +213,9 @@ def run_usage_collection():
return json.dumps(resp)
except Exception as e:
log.critical('Exception escaped!', type(e), e)
import traceback
traceback.print_exc()
trace = traceback.format_exc()
log.critical('Exception escaped! %s \nTrace: \n%s' % (e, trace))
def build_tenant_dict(tenant, entries, db):