add unique id
This commit is contained in:
parent
3b9ed0c98f
commit
4eea6929d7
2
app.py
2
app.py
@ -41,6 +41,8 @@ class XProcess(Process):
|
|||||||
del data['#type']
|
del data['#type']
|
||||||
ts = int(time.time())
|
ts = int(time.time())
|
||||||
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
|
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
|
||||||
|
if msg.topic == 'debug':
|
||||||
|
self.log.info(data)
|
||||||
|
|
||||||
if 'user' in type_:
|
if 'user' in type_:
|
||||||
# continue
|
# continue
|
||||||
|
Loading…
Reference in New Issue
Block a user