From 79227f9aa1fd1a53cb55cf93a7a10389fc4524f6 Mon Sep 17 00:00:00 2001 From: Jussi Vatjus-Anttila Date: Tue, 29 Nov 2022 12:38:03 +0200 Subject: [PATCH] improve logging for adb execute (#24) --- stf_appium_client/AdbServer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stf_appium_client/AdbServer.py b/stf_appium_client/AdbServer.py index caa9367..c2610dc 100644 --- a/stf_appium_client/AdbServer.py +++ b/stf_appium_client/AdbServer.py @@ -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: