Add logging of running processes on startup

This commit is contained in:
Joshua M. Boniface 2021-04-27 17:47:06 -04:00
parent 711bf6d3b5
commit 41ae3190f8

View file

@ -118,8 +118,10 @@ def get_target_host():
for line in contents:
if re.match("^badhost", line):
bad_hosts.append(line.split()[1])
log.info("Found bad host mark from rffmpeg process %s for host '%s'", re.findall(r"[0-9]+", state_file)[0], line.split()[1])
else:
active_hosts.append(line.split()[0])
log.info("Found running rffmpeg process %s against host '%s'", re.findall(r"[0-9]+", state_file)[0], line.split()[0])
# Get the remote hosts list from the config
remote_hosts = config["remote_hosts"]