提交 5430cf17 编写于 作者: B barrierye

add info log

上级 1d1d0872
...@@ -235,6 +235,10 @@ class PipelineServer(object): ...@@ -235,6 +235,10 @@ class PipelineServer(object):
return use_ops, succ_ops_of_use_op return use_ops, succ_ops_of_use_op
use_ops, out_degree_ops = get_use_ops(response_op) use_ops, out_degree_ops = get_use_ops(response_op)
_LOGGER.info("================= use op ==================")
for op in use_ops:
_LOGGER.debug(op.name)
_LOGGER.info("===========================================")
if len(use_ops) <= 1: if len(use_ops) <= 1:
raise Exception( raise Exception(
"Besides RequestOp and ResponseOp, there should be at least one Op in DAG." "Besides RequestOp and ResponseOp, there should be at least one Op in DAG."
...@@ -384,7 +388,7 @@ class PipelineServer(object): ...@@ -384,7 +388,7 @@ class PipelineServer(object):
def prepare_server(self, yml_file): def prepare_server(self, yml_file):
with open(yml_file) as f: with open(yml_file) as f:
yml_config = yaml.load(f.read(), Loader=yaml.FullLoader) yml_config = yaml.load(f.read())
self._port = yml_config.get('port', 8080) self._port = yml_config.get('port', 8080)
if not self._port_is_available(self._port): if not self._port_is_available(self._port):
raise SystemExit("Prot {} is already used".format(self._port)) raise SystemExit("Prot {} is already used".format(self._port))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册