开启日志用于调试
This commit is contained in:
parent
3be116594b
commit
74a397249e
@ -19,7 +19,7 @@ from mysql.mmysql import MysqlBase
|
|||||||
from prod_config import mysql_promotion_config
|
from prod_config import mysql_promotion_config
|
||||||
import datetime
|
import datetime
|
||||||
import pdb
|
import pdb
|
||||||
|
import time
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
parser = reqparse.RequestParser()
|
parser = reqparse.RequestParser()
|
||||||
@ -207,6 +207,7 @@ class Ad(Resource):
|
|||||||
if data:
|
if data:
|
||||||
condition = f"id='{self.args['id']}'"
|
condition = f"id='{self.args['id']}'"
|
||||||
self.mydb.update("ad", ad, condition)
|
self.mydb.update("ad", ad, condition)
|
||||||
|
time.sleep(5)
|
||||||
if rebuild_ad():
|
if rebuild_ad():
|
||||||
log.info(f"rebuild cache via ad change!")
|
log.info(f"rebuild cache via ad change!")
|
||||||
return jsonify({'code': 200, 'message': 'update adid={id} success!'})
|
return jsonify({'code': 200, 'message': 'update adid={id} success!'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user