Browse Source

优化打印

locky 1 year ago
parent
commit
4f89d81b6d
2 changed files with 6 additions and 4 deletions
  1. 3 2
      Controller/DetectController.py
  2. 3 2
      Controller/DetectControllerV2.py

+ 3 - 2
Controller/DetectController.py

@@ -166,7 +166,8 @@ class NotificationView(View):
 
 
 def push_and_save_data(**params):
-    V1_PUSH_LOGGER.info('{}开始异步存表和推送'.format(params['uid']))
+    uid = params['uid']
+    V1_PUSH_LOGGER.info('{}开始异步存表和推送'.format(uid))
     # 保存推送数据和推送消息
     result = DevicePushService.save_msg_push(**params)
-    V1_PUSH_LOGGER.info('存表和推送结果:{}'.format(result))
+    V1_PUSH_LOGGER.info('{}存表和推送结果:{}'.format(uid, result))

+ 3 - 2
Controller/DetectControllerV2.py

@@ -161,7 +161,8 @@ class NotificationV2View(View):
 
 
 def push_and_save_data(**params):
-    TIME_LOGGER.info('{}开始异步存表和推送'.format(params['uid']))
+    uid = params['uid']
+    TIME_LOGGER.info('{}开始异步存表和推送'.format(uid))
     # 保存推送数据和推送消息
     result = DevicePushService.save_msg_push(**params)
-    TIME_LOGGER.info('存表和推送结果:{}'.format(result))
+    TIME_LOGGER.info('{}存表和推送结果:{}'.format(uid, result))