From: Pik Master <pikmaster@wp.pl>
Date: Wed, 24 Apr 2024 17:23:24 +0800
Subject: Change logging on ia_addr message

Origin: upstream, http://sourceforge.net/p/net-snmp/patches/1322/
Bug-Debian: https://bugs.debian.org/684721
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2019-10-10

Message about error with subcontainers is just debug, not a filtered by
keyword debug. This (along with logging options set to high in the init 
script) made snmpd very chatty.
---
 snmplib/container.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/snmplib/container.c b/snmplib/container.c
index cb9d9bb..51c7768 100644
--- a/snmplib/container.c
+++ b/snmplib/container.c
@@ -344,8 +344,8 @@ int CONTAINER_INSERT_HELPER(netsnmp_container* x, const void* k)
     if(x) {
         int rc = x->insert(x,k);
         if(rc)
-            snmp_log(LOG_DEBUG,"error on subcontainer '%s' insert (%d)\n",
-                     x->container_name ? x->container_name : "", rc);
+            DEBUGMSGTL(("container:insert_helper", "error on subcontainer '%s' insert (%d)\n",
+                     x->container_name ? x->container_name : "", rc));
         else {
             rc = CONTAINER_INSERT_HELPER(x->next, k);
             if(rc)
