feat: 新增日志

This commit is contained in:
余泓铮
2024-09-26 22:47:31 +08:00
parent 351595e20b
commit 9acdb4332e
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2409252253
v5.0.0-beta-2409262247

View File

@@ -103,6 +103,7 @@ func (hd *hdcDriver) Unlock() (err error) {
}
re := regexp.MustCompile(`powerstatus=([\w_]+)`)
match := re.FindStringSubmatch(screenInfo)
log.Info().Msg("screen info: " + screenInfo)
if len(match) <= 1 {
return fmt.Errorf("failed to unlock; failed to find powerstatus")
}