mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-28 20:07:48 +00:00
Fix trace on early console connect
If the trace happens before tracelog is ready, just print the output to the stdout log for now.
This commit is contained in:
parent
f830658818
commit
8cae5ea101
@ -359,8 +359,11 @@ class ConsoleHandler(object):
|
||||
except (exc.NotImplementedException, exc.NotFoundException):
|
||||
self._console = None
|
||||
except:
|
||||
_tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event,
|
||||
event=log.Events.stacktrace)
|
||||
if _tracelog:
|
||||
_tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event,
|
||||
event=log.Events.stacktrace)
|
||||
else:
|
||||
print(traceback.format_exc())
|
||||
if not isinstance(self._console, conapi.Console):
|
||||
self.clearbuffer()
|
||||
self.connectstate = 'unconnected'
|
||||
|
Loading…
x
Reference in New Issue
Block a user