Commit dc1f9194 authored by 谢祁峰's avatar 谢祁峰

fix

parent 44ae6f87
...@@ -299,7 +299,7 @@ class CollectData(object): ...@@ -299,7 +299,7 @@ class CollectData(object):
try: try:
raw_val_dict, msg = loads_data(ori_msg.value) raw_val_dict, msg = loads_data(ori_msg.value)
if msg: if msg:
logging.info(ori_msg.value) logging.info(msg,ori_msg.value)
else: else:
logging.info(msg,ori_msg.value) logging.info(msg,ori_msg.value)
...@@ -684,7 +684,7 @@ class CollectData(object): ...@@ -684,7 +684,7 @@ class CollectData(object):
"venus/community/survey_question/record_kyc_last_question" in str(data['SYS'].get('action',"")): "venus/community/survey_question/record_kyc_last_question" in str(data['SYS'].get('action',"")):
action = str(data['SYS'].get('action', '')) action = str(data['SYS'].get('action', ''))
logging.info("action=%s" % action) logging.info('action:%s' % action)
tag_ids = list(data["APP"].get("tag_ids", [])) tag_ids = list(data["APP"].get("tag_ids", []))
tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter( tag_list = list(Tag.objects.using(settings.SLAVE1_DB_NAME).filter(
id__in=tag_ids, is_online=True, is_deleted=False, id__in=tag_ids, is_online=True, is_deleted=False,
...@@ -694,7 +694,7 @@ class CollectData(object): ...@@ -694,7 +694,7 @@ class CollectData(object):
self.transfer_update_recommend_tag_list(device_id, user_feature, user_id, self.transfer_update_recommend_tag_list(device_id, user_feature, user_id,
tag_list, tag_list,
5) 5)
logging.info("%s,device_id:%s,tag_list:%s" % (action, logging.info("action:%s,device_id:%s,tag_list:%s" % (action,
str(device_id), str(tag_list))) str(device_id), str(tag_list)))
else: else:
if msg: if msg:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment