Browse Source

添加打印信息

locky 2 weeks ago
parent
commit
0b9b587bea
1 changed files with 3 additions and 2 deletions
  1. 3 2
      controller/Snapshot.py

+ 3 - 2
controller/Snapshot.py

@@ -171,8 +171,9 @@ class SnapshotView(View):
                 }
             }
 
-            LOGGER.info('快照异步事件请求: url:{},data:{}'.format(api_uri, payload_json))
-            response = requests.post(api_uri, json=payload_json, headers=headers)
+            LOGGER.info('快照异步事件请求: url:{},data:{}, headers, time_sample:{}'.format(
+                api_uri, payload_json, headers, time_sample))
+            response = requests.post(api_uri, json=payload_json, headers=headers, timeout=30)
             LOGGER.info('快照异步事件请求响应: {}'.format(response.json()))
 
             return JsonResponse({'res': 'success'})