aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Limonciello <superm1@gmail.com>2023-11-13 22:01:52 -0600
committerMario Limonciello <superm1@gmail.com>2023-11-13 22:01:52 -0600
commit05ac293be9443e7748c0d62207e331ce3b6464a2 (patch)
treeaf64fa26d8212345a79c385e9d8b842f7bc06bc0
parent1f8f61d5cd6f4cad42bf89ceadd654d82dea4472 (diff)
downloadlinux-firmware-05ac293be9443e7748c0d62207e331ce3b6464a2.tar.gz
Add extra debugging output when processing pull requests
Signed-off-by: Mario Limonciello <superm1@gmail.com>
-rwxr-xr-xcontrib/process_linux_firmware.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/process_linux_firmware.py b/contrib/process_linux_firmware.py
index b1d98222..46432a2d 100755
--- a/contrib/process_linux_firmware.py
+++ b/contrib/process_linux_firmware.py
@@ -151,6 +151,10 @@ def process_pr(mbox, num, remote):
cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
stdout, stderr = p.communicate(mbox.encode("utf-8"))
+ for line in stdout.splitlines():
+ logging.debug(line.decode("utf-8"))
+ for line in stderr.splitlines():
+ logging.debug(line.decode("utf-8"))
# determine if it worked (we can't tell unfortunately by return code)
cmd = ["git", "branch", "--list", branch]
@@ -158,6 +162,8 @@ def process_pr(mbox, num, remote):
result = subprocess.check_output(cmd)
if result:
+ for line in result.splitlines():
+ logging.debug(line.decode("utf-8"))
logging.info("Forwarding PR for {}".format(branch))
if remote:
create_pr(remote, branch)