fix: adb logcat clear argument

This commit is contained in:
lilong.129
2023-04-14 20:28:04 +08:00
parent 29a7ad3c46
commit 7ef29fef60
2 changed files with 2 additions and 2 deletions

View File

@@ -328,7 +328,7 @@ func (l *AdbLogcat) CatchLogcat() (err error) {
}
// clear logcat
if err = myexec.RunCommand("adb", "-s", l.serial, "logcat", "--clear"); err != nil {
if err = myexec.RunCommand("adb", "-s", l.serial, "shell", "logcat", "-c"); err != nil {
return
}