]> Frank Brehm's Git Trees - pixelpark/ldap-migration.git/commitdiff
Minor cange on logging output
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Jan 2021 15:53:16 +0000 (16:53 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Jan 2021 15:53:16 +0000 (16:53 +0100)
lib/ldap_migration/__init__.py

index 3051dfef0ba8a4208b7c5507c65a06d41f027a3d..d184f6da1bef5ff794f4ea2d89cda62c026c1266 100644 (file)
@@ -45,7 +45,7 @@ from fb_tools.collections import CIStringSet, CIDict
 
 from .config import LDAPMigrationConfiguration
 
-__version__ = '0.9.4'
+__version__ = '0.9.5'
 
 LOG = logging.getLogger(__name__)
 CFG_BASENAME = 'ldap-migration.ini'
@@ -1599,11 +1599,12 @@ class LDAPMigrationApplication(BaseApplication):
             if changes:
                 if self.verbose:
                     LOG.info("Updating target entry {!r} ...".format(tgt_dn))
-                if self.verbose > 1:
+                if self.verbose > 2:
                     msg = "Source attributes:\n{}".format(pp(src_entry['attributes']))
                     LOG.debug(msg)
                     msg = "Current target attributes:\n{}".format(pp(tgt_entry['attributes']))
                     LOG.debug(msg)
+                if self.verbose > 1:
                     msg = "Changes on target entry {tdn!r}:\n{ch}".format(
                         tdn=tgt_dn, ch=pp(changes))
                     LOG.debug(msg)