提交 b4e8443a 编写于 作者: C Ciju John

File check for preventing spurious errors.

上级 0abe43ba
......@@ -1880,12 +1880,17 @@ class Cluster(object):
def dumpErrorDetailImpl(self,fileName):
Utils.Print("=================================================================")
Utils.Print("Contents of %s:" % (fileName))
if os.path.exists(fileName):
with open(fileName, "r") as f:
shutil.copyfileobj(f, sys.stdout)
else:
Utils.Print("File %s not found." % (fileName))
def dumpErrorDetails(self):
self.dumpErrorDetailImpl("etc/eosio/node_bios/config.ini")
self.dumpErrorDetailImpl("var/lib/node_bios/stderr.txt")
fileName="etc/eosio/node_bios/config.ini"
self.dumpErrorDetailImpl(fileName)
fileName="var/lib/node_bios/stderr.txt"
self.dumpErrorDetailImpl(fileName)
for i in range(0, len(self.nodes)):
fileName="etc/eosio/node_%02d/config.ini" % (i)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册