Commit 42b7a5d8 authored by Kai's avatar Kai

add logging

parent 77431f40
...@@ -311,6 +311,7 @@ class ESPerform(object): ...@@ -311,6 +311,7 @@ class ESPerform(object):
offset=0, size=100,routing="3,4,5") offset=0, size=100,routing="3,4,5")
topic_id_list = [item["_source"]["id"] for item in result_dict["hits"]] topic_id_list = [item["_source"]["id"] for item in result_dict["hits"]]
logging.info("topic_id_list:%s"%str(topic_id_list))
return topic_id_list return topic_id_list
except: except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc()) logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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