KCC: avoid logging alarming things about exected events
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 22 Jun 2015 04:38:29 +0000 (16:38 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2015 04:08:15 +0000 (05:08 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc/__init__.py

index 6f97e67dd30d9015b3bf6544245503d1a5bc4a8f..458af39b373935c695da8169f8541abf39fe4b4c 100644 (file)
@@ -165,7 +165,7 @@ class KCC(object):
             if transport.name == 'IP':
                 self.ip_transport = transport
             elif transport.name == 'SMTP':
-                logger.info("Samba KCC is ignoring the obsolete SMTP transport.")
+                logger.debug("Samba KCC is ignoring the obsolete SMTP transport.")
 
             else:
                 logger.warning("Samba KCC does not support the transport called %r."
@@ -267,9 +267,9 @@ class KCC(object):
             res = self.samdb.search(base=dn, scope=ldb.SCOPE_BASE,
                                     attrs=["objectGUID"])
         except ldb.LdbError, (enum, estr):
-            logger.warning("Search for dn '%s' [from %s] failed: %s. "
-                           "This typically happens in --importldif mode due "
-                           "to lack of module support.", dn, dn_query, estr)
+            DEBUG_FN("Search for dn '%s' [from %s] failed: %s. "
+                     "This typically happens in --importldif mode due "
+                     "to lack of module support." % (dn, dn_query, estr))
             try:
                 # We work around the failure above by looking at the
                 # dsServiceName that was put in the fake rootdse by