demote warning log message about not being able to open /sys/class/hwmon to the API debug log to prevent it from filling up the log when not available

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2024-03-15 23:50:17 +00:00
parent a0d655432a
commit 4cd500dfac
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ static int get_hwmon_sensors(struct ftl_conn *api, cJSON *sensors)
if(hwmon_dir == NULL)
{
// Nothing to read here, leave array empty
log_warn("Cannot open %s: %s", dirname, strerror(errno));
log_debug(DEBUG_API, "Cannot open %s: %s", dirname, strerror(errno));
return 0;
}