未验证 提交 adee5a53 编写于 作者: T ThreadDao 提交者: GitHub

Fix test log error Is a directory (#11690)

Signed-off-by: NThreadDao <yufen.zong@zilliz.com>
上级 9d9d1e57
......@@ -34,10 +34,11 @@ class TestLog:
eh.setFormatter(formatter)
self.log.addHandler(eh)
wh = logging.FileHandler(self.log_worker)
wh.setLevel(logging.DEBUG)
wh.setFormatter(formatter)
self.log.addHandler(wh)
if self.log_worker != "":
wh = logging.FileHandler(self.log_worker)
wh.setLevel(logging.DEBUG)
wh.setFormatter(formatter)
self.log.addHandler(wh)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册