From 1859abf47c862b559cfefbacda970554c342db55 Mon Sep 17 00:00:00 2001 From: deveco_xdevice Date: Tue, 7 Nov 2023 19:10:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9hilog=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8A=93=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deveco_xdevice --- plugins/ohos/src/ohos/environment/device.py | 4 ++-- plugins/ohos/src/ohos/utils.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 plugins/ohos/src/ohos/utils.py diff --git a/plugins/ohos/src/ohos/environment/device.py b/plugins/ohos/src/ohos/environment/device.py index f0e175b..8c6b781 100644 --- a/plugins/ohos/src/ohos/environment/device.py +++ b/plugins/ohos/src/ohos/environment/device.py @@ -925,9 +925,9 @@ class DeviceLogCollector: command = "hilog" if self.device.host != "127.0.0.1": cmd = [HdcHelper.CONNECTOR_NAME, "-s", "{}:{}".format(self.device.host, self.device.port), - "-t", self.device.device_sn, "shell", command] + "-t", self.device.device_sn, command] else: - cmd = [HdcHelper.CONNECTOR_NAME, "-t", self.device.device_sn, "shell", command] + cmd = [HdcHelper.CONNECTOR_NAME, "-t", self.device.device_sn, command] LOG.info("execute command: %s" % " ".join(cmd).replace( self.device.device_sn, convert_serial(self.device.device_sn))) device_hilog_proc = start_standing_subprocess( diff --git a/plugins/ohos/src/ohos/utils.py b/plugins/ohos/src/ohos/utils.py new file mode 100644 index 0000000..e69de29