2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix reference to the logger class

This commit is contained in:
Jarrod Johnson 2019-02-26 10:21:12 -05:00
parent 275525d3f3
commit ebfbbcca23
2 changed files with 3 additions and 1 deletions

View File

@ -220,6 +220,8 @@ def list_discovery(options, session):
if options.order.lower() == field.lower():
orderby = field
if options.csv:
if orderby:
hsht
csv.writer(sys.stdout).writerow(columns)
else:
outhandler = client.Tabulator(columns)

View File

@ -63,7 +63,7 @@ def execupdate(handler, filename, updateobj, type, owner, node):
'detail': errstr})
except Exception as e:
if _tracelog is None:
_tracelog = log.logger('trace')
_tracelog = log.Logger('trace')
_tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event, event=log.Events.stacktrace)
updateobj.handle_progress({'phase': 'error', 'progress': 0.0,
'detail': str(e)})