only parse new changelog entries

This commit is contained in:
j 2019-01-31 14:08:51 +05:30
parent b1a2106381
commit 0216c16c3d

View file

@ -56,6 +56,9 @@ class Peer(object):
for line in fd: for line in fd:
if line: if line:
try: try:
revision = int(line.split(',', 1)[0][1:])
if revision <= self.info.get('revision', -1):
continue
data = json.loads(line) data = json.loads(line)
except: except:
logger.debug('failed to parse line: %s', line) logger.debug('failed to parse line: %s', line)