开启日志用于调试

This commit is contained in:
pengtao 2019-10-09 19:34:12 +08:00
parent 464b50e96b
commit e23b5a264b
2 changed files with 1 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class Location(Resource):
AND channelid={channelid}
and in_used=1;"""
try:
print(f"sql={sql}")
#print(f"sql={sql}")
data = self.mydb.query(sql)
except Exception:
log.error("get data from location failed!", exc_info=True)

View File

@ -171,5 +171,3 @@ def produce_task():
now = datetime.datetime.now()
timestamp = int(datetime.datetime.timestamp(now))
my_redis.set("ad_produce_time", timestamp)
del data
del all