Add debugging to deadman process

This commit is contained in:
Jerry Seutter 2014-11-24 14:32:06 -07:00
parent cb913416ef
commit ef8c6b603c
2 changed files with 2 additions and 2 deletions

View File

@ -83,6 +83,7 @@ class DeadMan(IModule):
cmd.append("--file") cmd.append("--file")
cmd.append("%s" % (self._heartbeat_file)) cmd.append("%s" % (self._heartbeat_file))
cmd.append("--background") cmd.append("--background")
cmd.append("--debug")
log.info("Deadman: Running command: %s"%(cmd)) log.info("Deadman: Running command: %s"%(cmd))
process = subprocess.Popen(cmd, stderr=subprocess.STDOUT, shell=False) process = subprocess.Popen(cmd, stderr=subprocess.STDOUT, shell=False)
@ -94,7 +95,6 @@ class DeadMan(IModule):
""" """
cmd = [] cmd = []
cmd.append("gns3dms") cmd.append("gns3dms")
cmd.append("-k") cmd.append("-k")
log.info("Deadman: Running command: %s"%(cmd)) log.info("Deadman: Running command: %s"%(cmd))

View File

@ -44,7 +44,7 @@ import uuid
SCRIPT_NAME = os.path.basename(__file__) SCRIPT_NAME = os.path.basename(__file__)
#Is the full path when used as an import # This is the full path when used as an import
SCRIPT_PATH = os.path.dirname(__file__) SCRIPT_PATH = os.path.dirname(__file__)
if not SCRIPT_PATH: if not SCRIPT_PATH: