Blame SOURCES/net-snmp-5.7.2-dot3stats-log.patch

b5ae06
915302 - snmpd logging strange messages when reading MIB
b5ae06
b5ae06
commit ecf8682d864d2f08525078543858d361b3adca5c
b5ae06
Author: Jan Safranek <jsafranek@users.sourceforge.net>
b5ae06
Date:   Wed Jul 10 10:47:33 2013 +0200
b5ae06
b5ae06
    Lower importance of debugging messages, they spam syslog.
b5ae06
b5ae06
diff --git a/agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c b/agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c
b5ae06
index 49c3fdb..b110950 100644
b5ae06
--- a/agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c
b5ae06
+++ b/agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c
b5ae06
@@ -440,7 +440,7 @@ _dot3Stats_netlink_get_errorcntrs(dot3StatsTable_rowreq_ctx *rowreq_ctx, const c
b5ae06
         {
b5ae06
             dot3StatsTable_data *data = &rowreq_ctx->data;
b5ae06
 
b5ae06
-            snmp_log(LOG_ERR, "IFLA_STATS for %s\n", name);
b5ae06
+            DEBUGMSGTL(("access:dot3StatsTable", "IFLA_STATS for %s\n", name));
b5ae06
 
b5ae06
             data->dot3StatsFCSErrors = ke->stats.rx_crc_errors;
b5ae06
             rowreq_ctx->column_exists_flags |= COLUMN_DOT3STATSFCSERRORS_FLAG;
b5ae06
@@ -527,7 +527,7 @@ interface_dot3stats_get_errorcounters (dot3StatsTable_rowreq_ctx *rowreq_ctx, co
b5ae06
 
b5ae06
     if (_dot3Stats_netlink_get_errorcntrs(rowreq_ctx, name) == 0)
b5ae06
     {
b5ae06
-        snmp_log(LOG_NOTICE, "interface_dot3stats_get_errorcounters: got data from IFLA_STATS\n");
b5ae06
+        DEBUGMSGTL(("access:dot3StatsTable", "interface_dot3stats_get_errorcounters: got data from IFLA_STATS\n"));
b5ae06
         return;
b5ae06
     }
b5ae06