开启日志用于调试
This commit is contained in:
parent
464b50e96b
commit
e23b5a264b
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user