diff --git a/internal/system/chassis_others.go b/internal/system/chassis_others.go index cbfefa5..49e38aa 100644 --- a/internal/system/chassis_others.go +++ b/internal/system/chassis_others.go @@ -6,7 +6,9 @@ import "github.com/jaypipes/ghw" // GetChassisInfo retrieves hardware information including machine model type and vendor from the system profiler. func GetChassisInfo() (*ChassisInfo, error) { - chassis, err := ghw.Chassis() + // Disable warnings from ghw, since these are undesirable but recoverable errors. + // With warnings enabled, ghw will emit unnecessary log messages. + chassis, err := ghw.Chassis(ghw.WithDisableWarnings()) if err != nil { return nil, err }