mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: failed to catch logcat
This commit is contained in:
@@ -310,6 +310,9 @@ func ConvertPoints(data string) (eps []ExportPoint) {
|
|||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
if strings.Contains(line, "ext") {
|
if strings.Contains(line, "ext") {
|
||||||
idx := strings.Index(line, "{")
|
idx := strings.Index(line, "{")
|
||||||
|
if idx == -1 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
line = line[idx:]
|
line = line[idx:]
|
||||||
p := ExportPoint{}
|
p := ExportPoint{}
|
||||||
err := json.Unmarshal([]byte(line), &p)
|
err := json.Unmarshal([]byte(line), &p)
|
||||||
|
|||||||
Reference in New Issue
Block a user