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

add

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