From: Frank Brehm Date: Wed, 6 Jan 2021 15:53:16 +0000 (+0100) Subject: Minor cange on logging output X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=8b9655f57b550018b555676f4056d4ea071412e0;p=pixelpark%2Fldap-migration.git Minor cange on logging output --- diff --git a/lib/ldap_migration/__init__.py b/lib/ldap_migration/__init__.py index 3051dfe..d184f6d 100644 --- a/lib/ldap_migration/__init__.py +++ b/lib/ldap_migration/__init__.py @@ -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)