2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Correct confetty displaying stale error information

After implementing timestamps, error data was erroneously persisted.  Address
by deleting the state once consumed in constructing the relevant status string.
This commit is contained in:
Jarrod Johnon 2014-11-04 10:12:37 -05:00
parent 185e94703b
commit 9dab77e93c

View File

@ -83,6 +83,9 @@ def updatestatus(stateinfo={}):
info.append(laststate['connectstate'])
if 'error' in laststate:
info.append(laststate['error'])
# error will be repeated if relevant
# avoid keeping it around as stale
del laststate['error']
if 'clientcount' in laststate and laststate['clientcount'] != 1:
info.append('clients: %d' % laststate['clientcount'])
if 'bufferage' in stateinfo and stateinfo['bufferage'] is not None: