From 7659d1a884fc95ce19159facad3a5560390929a0 Mon Sep 17 00:00:00 2001 From: Esa Jokinen Date: Tue, 30 Jul 2024 13:23:51 +0300 Subject: [PATCH] follow-cvelist.py git pull output to stderr All verbose (debug) output should go to stderr. --- bin/follow-cvelist.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/follow-cvelist.py b/bin/follow-cvelist.py index 4bb8f15..9386291 100755 --- a/bin/follow-cvelist.py +++ b/bin/follow-cvelist.py @@ -150,7 +150,10 @@ def monitor(self): def pull(self): """Runs git pull""" if self.args.verbose > 1: - subprocess.call(["git", "pull"]) + result = subprocess.run( + ["git", "pull"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT + ) + print(result.stdout.decode("utf-8").strip(), file=sys.stderr) else: subprocess.call( ["git", "pull"], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT