提交 4231328e 编写于 作者: P peng.xu

smaill code changes for logging

上级 3fb602c8
......@@ -12,7 +12,6 @@ grpc_server = Server()
def create_app(testing_config=None):
config = testing_config if testing_config else settings.DefaultConfig
db.init_db(uri=config.SQLALCHEMY_DATABASE_URI, echo=config.SQL_ECHO)
logger.info(db)
from mishards.connections import ConnectionMgr
connect_mgr = ConnectionMgr()
......
......@@ -170,7 +170,7 @@ class EventHandler(threading.Thread):
event['pod']))
return
elif try_cnt <= 0 and not pod.status.pod_ip:
logger.warn('NoPodIPFoundError')
logger.warning('NoPodIPFoundError')
return
logger.info('Register POD {} with IP {}'.format(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册