mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-17 20:55:27 +00:00
Add extra debugging output when processing pull requests
Signed-off-by: Mario Limonciello <superm1@gmail.com>
This commit is contained in:
parent
1f8f61d5cd
commit
05ac293be9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user