Commit faf0c247 authored by 段英荣's avatar 段英荣

Merge branch 'gyz' into 'master'

增加日志

See merge request alpha/physical!477
parents bf0864c7 474599b8
...@@ -349,9 +349,11 @@ def get_topic_and_pictorial_detail_for_debug(device_id = "",linucb_topic_id_list ...@@ -349,9 +349,11 @@ def get_topic_and_pictorial_detail_for_debug(device_id = "",linucb_topic_id_list
"edit_tags": edit_tag_name_score_list}}) "edit_tags": edit_tag_name_score_list}})
logging.info("linucb_pictorial:{}".format(linucb_pictorial_results)) logging.info("linucb_pictorial:{}".format(linucb_pictorial_results))
# num += 1 # num += 1
logging.info("get_topic_and_pictorial_detail_for_debug:result:{}".format({ "linucb_topic":linucb_topic_results,"rank_topic":rank_topic_results,"linucb_pictorial":linucb_pictorial_results})) result = { "linucb_topic":linucb_topic_results,"rank_topic":rank_topic_results,"linucb_pictorial":linucb_pictorial_results}
return { "linucb_topic":linucb_topic_results,"rank_topic":rank_topic_results,"linucb_pictorial":linucb_pictorial_results} logging.info("get_topic_and_pictorial_detail_for_debug:result:{}:device_id:{}".format(result, device_id))
return result
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return { "linucb_topic":{},"rank_topic":{},"linucb_pictorial":{}} return { "linucb_topic":{},"rank_topic":{},"linucb_pictorial":{}}
......
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