fixing top level exception catch and critical log
Change-Id: I2a7ace9ae5fe254071d9d51e30d5a67bd29edd68
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user