调整日志

This commit is contained in:
pengtao 2019-09-29 15:49:32 +08:00
parent ddc67f7b40
commit 68466a0824
2 changed files with 3 additions and 1 deletions

View File

@ -146,6 +146,8 @@ class DispatchHandler(tornado.web.RequestHandler):
result = {'errcode': 2, "errmsg": f"get args failed,{str(e)}"}
log.error(result)
return self.write_error(2)
if area == 0 or area == str(0):
return self.write({'errcode': 2, "errmsg": f"area != 0 "})
if gameid and locationid:
key_word = f"ad::{gameid}_*::{channelid}::*::{locationid}"
elif gameid and area:

View File

@ -126,7 +126,7 @@ def produce_task():
log.error(f"write {item}", exc_info=True)
all.append(item)
except Exception:
log.error("split data failed", exc_info=True)
log.error(f"split data failed,data={line}", exc_info=True)
# 检查ID是否存在播放列表中以及播放次数是否完毕
if all:
for line in all: