From 33fb4637608abce2e6279db53007ce3460ab01cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=B3=93=E9=93=AE?= Date: Tue, 28 May 2024 15:05:57 +0800 Subject: [PATCH] feat: add log --- hrp/cmd/ios/apps.go | 6 +++--- hrp/pkg/uixt/android_device.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hrp/cmd/ios/apps.go b/hrp/cmd/ios/apps.go index 2c41009e..864cc328 100644 --- a/hrp/cmd/ios/apps.go +++ b/hrp/cmd/ios/apps.go @@ -49,11 +49,11 @@ var listAppsCmd = &cobra.Command{ applicationType = gidevice.ApplicationTypeAny } - result, errList := device.InstallationProxyBrowse( + result, err := device.InstallationProxyBrowse( gidevice.WithApplicationType(applicationType), gidevice.WithReturnAttributes("CFBundleVersion", "CFBundleDisplayName", "CFBundleIdentifier")) - if errList != nil { - return fmt.Errorf("get app list failed") + if err != nil { + return fmt.Errorf("get app list failed %v", err) } for _, app := range result { diff --git a/hrp/pkg/uixt/android_device.go b/hrp/pkg/uixt/android_device.go index 29100163..ffbfb4c2 100644 --- a/hrp/pkg/uixt/android_device.go +++ b/hrp/pkg/uixt/android_device.go @@ -390,6 +390,7 @@ type ExportPoint struct { func ConvertPoints(lines []string) (eps []ExportPoint) { log.Info().Msg("ConvertPoints") + log.Info().Msg(strings.Join(lines, "\n")) for _, line := range lines { if strings.Contains(line, "ext") { idx := strings.Index(line, "{")