Bläddra i källkod

加打印,增加线程池数量

zhangdongming 1 år sedan
förälder
incheckning
ae2233bbf0
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      Object/GlobalThreadPoolObject.py
  2. 1 1
      Service/DevicePushService.py

+ 1 - 1
Object/GlobalThreadPoolObject.py

@@ -24,7 +24,7 @@ class GlobalThreadPool:
 
                     max_workers = 20
                     if CONFIG_INFO == CONFIG_US or CONFIG_INFO == CONFIG_EUR:
-                        max_workers = 200
+                        max_workers = 250
                     elif CONFIG_INFO == CONFIG_CN:
                         max_workers = 100
 

+ 1 - 1
Service/DevicePushService.py

@@ -460,7 +460,7 @@ class DevicePushService:
             return push_result
         except Exception as e:
             ERROR_INFO_LOGGER.info(
-                '发送推送线程异常,error_line:{},error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
+                '发送推送线程异常params:{},error_line:{},error_msg:{}'.format(kwargs, e.__traceback__.tb_lineno, repr(e)))
             return False
 
     @staticmethod