fix: failed to catch logcat

This commit is contained in:
xucong.053
2022-11-09 15:38:10 +08:00
parent b8f61ea113
commit 49757b52a8
+3
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)