开启日志用于调试
This commit is contained in:
parent
464b50e96b
commit
e23b5a264b
@ -55,7 +55,7 @@ class Location(Resource):
|
|||||||
AND channelid={channelid}
|
AND channelid={channelid}
|
||||||
and in_used=1;"""
|
and in_used=1;"""
|
||||||
try:
|
try:
|
||||||
print(f"sql={sql}")
|
#print(f"sql={sql}")
|
||||||
data = self.mydb.query(sql)
|
data = self.mydb.query(sql)
|
||||||
except Exception:
|
except Exception:
|
||||||
log.error("get data from location failed!", exc_info=True)
|
log.error("get data from location failed!", exc_info=True)
|
||||||
|
@ -171,5 +171,3 @@ def produce_task():
|
|||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
timestamp = int(datetime.datetime.timestamp(now))
|
timestamp = int(datetime.datetime.timestamp(now))
|
||||||
my_redis.set("ad_produce_time", timestamp)
|
my_redis.set("ad_produce_time", timestamp)
|
||||||
del data
|
|
||||||
del all
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user