Commit 11f3a50a authored by lixiaofang's avatar lixiaofang

添加日志

parent 02aaf050
......@@ -54,14 +54,18 @@ def kafka_consum(topic_name=None):
if card_info['action_type'] == "comment":
auto_comment_user(card_info, after_day=True)
logging.info("auto_comment_user子函数消费处理耗时:%f" % (time.time() - begin))
logging.info("当前卡片ID:%s,auto_comment_user子函数消费处理耗时:%f" % (
card_info['card_id'], time.time() - begin))
elif card_info['action_type'] == "click":
auto_click_user(card_info, after_day=True)
logging.info("auto_click_user子函数消费处理耗时:%f" % (time.time() - begin))
logging.info("当前卡片ID:%s,auto_click_user子函数消费处理耗时:%f" % (
card_info['card_id'], time.time() - begin))
elif card_info['action_type'] == "follow":
auto_follow_user(card_info, after_day=True)
logging.info("auto_follow_user子函数消费处理耗时:%f" % (time.time() - begin))
logging.info("当前卡片ID:%s,auto_follow_user子函数消费处理耗时:%f" % (
card_info['card_id'], time.time() - begin))
else:
pass
......
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