开启日志用于调试

This commit is contained in:
pengtao 2019-10-09 17:27:51 +08:00
parent 74a397249e
commit 42b0c5a450

View File

@ -207,7 +207,7 @@ class Ad(Resource):
if data:
condition = f"id='{self.args['id']}'"
self.mydb.update("ad", ad, condition)
time.sleep(5)
time.sleep(2)
if rebuild_ad():
log.info(f"rebuild cache via ad change!")
return jsonify({'code': 200, 'message': 'update adid={id} success!'})