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

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