]> git.proxmox.com Git - mirror_linux-firmware.git/commitdiff
Add extra debugging output when processing pull requests
authorMario Limonciello <superm1@gmail.com>
Tue, 14 Nov 2023 04:01:52 +0000 (22:01 -0600)
committerMario Limonciello <superm1@gmail.com>
Tue, 14 Nov 2023 04:01:52 +0000 (22:01 -0600)
Signed-off-by: Mario Limonciello <superm1@gmail.com>
contrib/process_linux_firmware.py

index b1d9822216501d0b4b02f7c2369554e89c4915c6..46432a2d8dca67c778a004f132e055d9182243ed 100755 (executable)
@@ -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)