Remove/demote log messages in sensor and resource update functions.

This commit is contained in:
Ken Chiang
2017-05-04 17:03:28 -07:00
parent a91753e3ba
commit e973183257
2 changed files with 2 additions and 4 deletions

View File

@@ -132,7 +132,6 @@ resource_update(void)
if (now - last_resource_update_time >
(ONLP_SNMP_CONFIG_RESOURCE_UPDATE_SECONDS * 1000 * 1000)) {
last_resource_update_time = now;
AIM_LOG_INFO("update resource objects");
/* invoke mpstat collection script for json output */
FILE *fp = popen("/usr/bin/onl-snmp-mpstat", "r");

View File

@@ -1001,7 +1001,7 @@ update_tables__(void)
}
last_sensor_update_time = now;
AIM_LOG_INFO("update sensor objects");
AIM_LOG_TRACE("update sensor objects");
/* for each table: mark next_info invalid */
for (i = ONLP_SNMP_SENSOR_TYPE_TEMP; i <= ONLP_SNMP_SENSOR_TYPE_MAX; i++) {
@@ -1015,7 +1015,6 @@ update_tables__(void)
/* discover new sensors for all tables,
* writing validity into next_info for all sensors */
onlp_oid_iterate(ONLP_OID_SYS, 0, collect_sensors__, NULL);
AIM_LOG_INFO("iteration complete");
/* for each table: update all sensor info */
for (i = ONLP_SNMP_SENSOR_TYPE_TEMP; i <= ONLP_SNMP_SENSOR_TYPE_MAX; i++) {
@@ -1037,7 +1036,7 @@ update_tables__(void)
swap_curr_next_info();
/* trigger table restructuring */
AIM_LOG_INFO("trigger restructure");
AIM_LOG_TRACE("trigger restructure");
restructure_trigger = true;
}