Trivial: log traceback on an unexpected error
Otherwise, it's way too hard to guess what went wrong. Change-Id: I15ea8182c7699294c654dd3d61c5b7d0b4f4f8e5
This commit is contained in:
parent
b01bbdf42a
commit
4f92263791
@ -30,7 +30,7 @@ def prometheus_metrics():
|
||||
config.read(os.environ.get('IRONIC_CONFIG'))
|
||||
DIR = config['oslo_messaging_notifications']['location']
|
||||
except Exception:
|
||||
LOG.error('Unexpected error')
|
||||
LOG.exception('Unexpected error')
|
||||
abort(500)
|
||||
|
||||
all_files = [os.path.join(DIR, name) for name in os.listdir(DIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user