chore(inputs.temp): Convert warning on missing sensors to debug message (#14656)

This commit is contained in:
Dane Powell 2024-01-31 03:12:43 -08:00 committed by GitHub
parent 93783f813b
commit 94c0fd12c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ func (t *Temperature) gatherHwmon(syspath string) ([]TemperatureStat, error) {
fn := filepath.Join(path, prefix+"_input") fn := filepath.Join(path, prefix+"_input")
buf, err := os.ReadFile(fn) buf, err := os.ReadFile(fn)
if err != nil { if err != nil {
t.Log.Warnf("Couldn't read temperature from %q: %v", fn, err) t.Log.Debugf("Couldn't read temperature from %q: %v", fn, err)
continue continue
} }
if v, err := strconv.ParseFloat(strings.TrimSpace(string(buf)), 64); err == nil { if v, err := strconv.ParseFloat(strings.TrimSpace(string(buf)), 64); err == nil {