fix: failed to catch logcat

This commit is contained in:
xucong.053
2022-10-27 18:07:17 +08:00
parent b8f61ea113
commit 49757b52a8

View File

@@ -310,6 +310,9 @@ func ConvertPoints(data string) (eps []ExportPoint) {
for _, line := range lines {
if strings.Contains(line, "ext") {
idx := strings.Index(line, "{")
if idx == -1 {
continue
}
line = line[idx:]
p := ExportPoint{}
err := json.Unmarshal([]byte(line), &p)