Skip to content

Commit

Permalink
improve logging for adb execute (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe authored Nov 29, 2022
1 parent f3c5a27 commit 79227f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stf_appium_client/AdbServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def execute(self, command: str, timeout: int = 2) -> EasyProcess:
if "ADB_VENDOR_KEYS" not in my_env:
my_env["ADB_VENDOR_KEYS"] = "~/.android"
response = EasyProcess(cmd, env=my_env).call(timeout=timeout)
self.logger.debug(f'adb stdout: {response.stdout}')
self.logger.debug(f'adb retcode: {response.return_code}, '
f'stdout: {response.stdout}, '
f'stderr: {response.stderr}')
return response

def connect(self) -> None:
Expand Down

0 comments on commit 79227f9

Please sign in to comment.