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

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