提交 d18b1e93 编写于 作者: S Steven Li

Fixed port number for crash_gen tool

上级 ab625d55
...@@ -693,7 +693,7 @@ class DbConnRest(DbConn): ...@@ -693,7 +693,7 @@ class DbConnRest(DbConn):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self._type = self.TYPE_REST self._type = self.TYPE_REST
self._url = "http://localhost:6020/rest/sql" # fixed for now self._url = "http://localhost:6041/rest/sql" # fixed for now
self._result = None self._result = None
def openByType(self): # Open connection def openByType(self): # Open connection
...@@ -2768,7 +2768,7 @@ class MainExec: ...@@ -2768,7 +2768,7 @@ class MainExec:
try: try:
ret = self._clientMgr.run(self._svcMgr) # stop TAOS service inside ret = self._clientMgr.run(self._svcMgr) # stop TAOS service inside
except requests.exceptions.ConnectionError as err: except requests.exceptions.ConnectionError as err:
logger.warning("Failed to open REST connection to DB") logger.warning("Failed to open REST connection to DB: {}".format(err.getMessage()))
# don't raise # don't raise
return ret return ret
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册