Commit b570b269 authored by 李小芳's avatar 李小芳

add

parent 20ffaae0
......@@ -100,11 +100,11 @@ class FakeBehaviorService(object):
:param user_id: 点赞的马甲号
:return:
"""
info_logger.info('begin tractate:{} fake vote'.format(tractate_id))
# info_logger.info('begin tractate:{} fake vote'.format(tractate_id))
try:
tractate = TractateService.healthy(tractate_id)
except RPCDFaultException:
info_logger.info('帖子:{}已经被下线,不需要灌水'.format(tractate_id))
# info_logger.info('帖子:{}已经被下线,不需要灌水'.format(tractate_id))
return
if settings.DEBUG:
user_ids = get_paas_sleep_users(1)
......
......@@ -38,7 +38,8 @@ def _on_checkout(dbapi_connection, connection_record, connection_proxy):
@event.listens_for(Pool, "checkin")
def _on_checkin(*args, **kwargs):
logger.info("connection returned to pool")
pass
# logger.info("connection returned to pool")
@event.listens_for(Pool, "connect")
......
......@@ -220,7 +220,7 @@ class WxTkApi(object):
('scope', scope),
('state', state),
]) + '#wechat_redirect'
info_logger.info(u'wexin_auth:%s', auth_url)
# info_logger.info(u'wexin_auth:%s', auth_url)
return auth_url
def get_accesstoken_by_refresh(self, refresh_token):
......@@ -253,7 +253,7 @@ class WxTkApi(object):
try:
r = requests.get(url, timeout=4)
info_logger.info("%s%s" % (code, r.content))
# info_logger.info("%s%s" % (code, r.content))
res = r.json()
except requests.exceptions.Timeout:
raise WxTkApiErr('timeout', None)
......
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