Skip to content

Commit 1df4978

Browse files
committed
more logs for git cmd
1 parent dabc11e commit 1df4978

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

alpa/git.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,15 @@ def git_cmd(
4444
stderr=asyncio.subprocess.PIPE,
4545
cwd=context,
4646
)
47+
stdout = process.stdout.decode()
48+
stderr = process.stderr.decode()
49+
logger.debug(
50+
f"git cmd results: stdout: {stdout}; stderr: {stderr}; "
51+
f"retval: {process.returncode}"
52+
)
4753
return GitCmdResult(
48-
stdout=process.stdout.decode().strip(),
49-
stderr=process.stderr.decode().strip(),
54+
stdout=stdout.strip(),
55+
stderr=stderr.strip(),
5056
retval=process.returncode,
5157
)
5258

@@ -69,6 +75,10 @@ async def async_git_cmd(
6975
cwd=context,
7076
)
7177
stdout, stderr = await async_subprocess.communicate()
78+
logger.debug(
79+
f"async git cmd results: stdout: {stdout.decode()}; "
80+
f"stderr: {stderr.decode()}; retval: {async_subprocess.returncode}"
81+
)
7282
return GitCmdResult(
7383
stdout=stdout.decode().strip(),
7484
stderr=stderr.decode().strip(),

0 commit comments

Comments
 (0)