版本封存
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package services
|
||||
package host_info
|
||||
|
||||
import (
|
||||
"cmii-uav-watchdog-common/models"
|
||||
"fmt"
|
||||
"cmii-uav-watchdog-common/wdd_log"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
@@ -19,7 +19,7 @@ var DefaultMotherboardInfo = models.MotherboardInfo{
|
||||
func readFileWithWarning(path string) ([]byte, error) {
|
||||
value, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
fmt.Printf("Warning: unable to read file %s: %v\n", path, err)
|
||||
wdd_log.Warn("无法读取文件 %s: %v", path, err)
|
||||
return nil, err
|
||||
}
|
||||
return value, nil
|
||||
|
||||
Reference in New Issue
Block a user