From e4d50361d0be2c86ddf9da7584963f54e72a86a8 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 15 八月 2023 16:48:54 +0800
Subject: [PATCH] ++++++++++++++++ bug修复-

---
 main.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/main.py b/main.py
index ffbdb69..fdcd686 100644
--- a/main.py
+++ b/main.py
@@ -3,11 +3,14 @@
 """
 
 import multiprocessing
+import os
+import sys
 
 from db import redis_manager_delegate as redis_manager
 import huaxin_api.trade_client
 import huaxin_api.l2_client
 import huaxin_api.l1_client
+from log_module import log
 
 from server import *
 
@@ -20,6 +23,7 @@
 
 
 def createTradeServer(pipe_server, pipe_trade, pipe_l1, pipe_l2):
+    log.close_print()
     # 鍒濆鍖栧弬鏁�
     global_data_loader.init()
 
@@ -55,6 +59,7 @@
 
 
 if __name__ == '__main__':
+    log.close_print()
     # 绛栫暐涓巗erver闂寸殑閫氫俊
     pss_server, pss_strategy = multiprocessing.Pipe()
     # 绛栫暐涓庝氦鏄撻棿鐨勯�氫俊

--
Gitblit v1.8.0