from .idict import CaseInsensitiveDict
from .istringset import CaseInsensitiveStringSet
-__version__ = '0.8.7'
+__version__ = '0.8.8'
LOG = logging.getLogger(__name__)
CFG_BASENAME = 'ldap-migration.ini'
"""
log_level = logging.INFO
- if self.quiet:
+ if self.verbose:
+ log_level = logging.DEBUG
+ elif self.quiet:
log_level = logging.WARNING
root_logger = logging.getLogger()
# create log handler for console output
lh_console = logging.StreamHandler(sys.stderr)
- lh_console.setLevel(log_level)
+ if self.quiet:
+ lh_console.setLevel(logging.WARNING)
+ else:
+ lh_console.setLevel(logging.INFO)
lh_console.setFormatter(formatter)
root_logger.addHandler(lh_console)
else:
paramiko_logger.setLevel(logging.INFO)
+ # create log handler for file output
lf_formatter = self._get_logfile_formatter()
lh_file = logging.FileHandler(
str(self.general_logfile), mode='a', encoding='utf-8', delay=True)