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:
parent
185e94703b
commit
9dab77e93c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user