Commit 80f90e3b authored by jinkaiqiang's avatar jinkaiqiang

修改报错

parent eb0ecd7d
Pipeline #29483 passed with stages
in 1 minute and 11 seconds
# -*- coding:utf-8 -*- # -*- coding:utf-8 -*-
from _socket import timeout from _socket import timeout
from huansi_utils.app.apploader import logger
from huansi_utils.db.db import new_id from huansi_utils.db.db import new_id
from huansi_utils.exception.exception import HSException from huansi_utils.exception.exception import HSException
from sqlalchemy import create_engine from sqlalchemy import create_engine
...@@ -159,7 +160,7 @@ values ...@@ -159,7 +160,7 @@ values
if not error_message: if not error_message:
error_message = str(e) error_message = str(e)
print("数据库连接失败,失败原因:{}".format(error_message)) logger.error("数据库连接失败,失败原因:{}".format(error_message))
return {'message': '连接失败'} return {'message': '连接失败'}
def get_remote_server_info(self): def get_remote_server_info(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment