This commit is contained in:
wuaho 2021-09-17 16:54:06 +08:00
parent 8f1ba1040b
commit 678b1c93c0
2 changed files with 5 additions and 1 deletions

4
app.py
View File

@ -68,3 +68,7 @@ class XProcess(Process):
continue
transmitter.run()
while True:
time.sleep(5)
print(f'进程{self.partition} 已结束。。。')

View File

@ -137,5 +137,5 @@ class Transmitter:
self.collect_event(self.db_name, tb, data)
self.__send(self.db_name, tb, [json.dumps(item) for item in data])
except Exception as e:
self.log.error(e)
self.log.error(traceback.format_exc())
buffer.clear()