liqian 2 years ago
parent
commit
28e7b15608
1 changed files with 13 additions and 12 deletions
  1. 13 12
      app.py

+ 13 - 12
app.py

@@ -72,18 +72,19 @@ def homepage_recommend():
             log_.info({
                 'requestUri': '/applet/video/homepage/recommend',
                 'logTimestamp': int(time.time() * 1000),
-                'request_params': {
-                    'request_id': request_id,
-                    'app_type': app_type,
-                    'client_info': client_info,
-                    'ab_exp_info': ab_exp_info,
-                    'ab_info_data': ab_info_data,
-                    'version_audit_status': version_audit_status,
-                    'category_id': category_id,
-                    'mid': mid,
-                    'uid': uid,
-                },
-                'recommend_result': recommend_result,
+                'request_id': request_id,
+                'app_type': app_type,
+                'client_info': client_info,
+                'ab_exp_info': ab_exp_info,
+                'ab_info_data': ab_info_data,
+                'version_audit_status': version_audit_status,
+                'category_id': category_id,
+                'mid': mid,
+                'uid': uid,
+                'getRecommendParamsTime': recommend_result.get('getRecommendParamsTime', ''),
+                'getRecommendResultTime': recommend_result.get('getRecommendResultTime', ''),
+                'updateRedisDataTime': recommend_result.get('updateRedisDataTime', ''),
+                'recommendOperation': recommend_result.get('recommendOperation', ''),
                 'result': result,
                 'executeTime': (time.time() - start_time) * 1000
             })