From 41ae3190f8f5859ca1d22d0b43fa436d3dd94f57 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 27 Apr 2021 17:47:06 -0400 Subject: [PATCH] Add logging of running processes on startup --- rffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rffmpeg.py b/rffmpeg.py index fd2df6a..653d1e0 100755 --- a/rffmpeg.py +++ b/rffmpeg.py @@ -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"]