diff --git a/app.py b/app.py index e58ee45..16a5f91 100644 --- a/app.py +++ b/app.py @@ -68,3 +68,7 @@ class XProcess(Process): continue transmitter.run() + + while True: + time.sleep(5) + print(f'进程{self.partition} 已结束。。。') diff --git a/v2/transmitter.py b/v2/transmitter.py index 08168ec..e2bf54d 100644 --- a/v2/transmitter.py +++ b/v2/transmitter.py @@ -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()