This commit is contained in:
wuaho 2021-06-10 09:34:12 +08:00
parent 5c863cbf5f
commit e74afd7e45
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,8 @@ def run():
for topic, msg in consumer():
# print(msg)
type_ = msg['#type']
if msg['#app_id']!='c3e0409ac18341149877b08f087db640':
print(msg)
del msg['#type']
ts = int(time.time())

View File

@ -63,7 +63,7 @@ class Transmitter:
else:
# pass
msg = traceback.format_exc()
self.log.eror(msg)
self.log.error(msg)
finally:
pass
# print(f' {os.getpid()} 释放锁')
@ -104,5 +104,5 @@ class Transmitter:
self.set_event_attr(self.db_name, tb, data)
self.__send(self.db_name, tb, [json.dumps(item) for item in data])
except Exception as e:
self.log.eror(e)
self.log.error(e)
buffer.clear()