from ldap3.core.exceptions import LDAPPasswordIsMandatoryError
+from ldap3.utils.log import set_library_log_detail_level, ERROR, BASIC, PROTOCOL, NETWORK, EXTENDED
+
# Own modules
from .global_version import __version__ as __global_version__
cfg_encoding=cfg_encoding, need_config_file=need_config_file,
)
+ if self.verbose > 3:
+ set_library_log_detail_level(EXTENDED)
+ elif self.verbose > 2:
+ set_library_log_detail_level(NETWORK)
+ elif self.verbose > 1:
+ set_library_log_detail_level(PROTOCOL)
+ elif self.verbose:
+ set_library_log_detail_level(BASIC)
+ else:
+ set_library_log_detail_level(ERROR)
+
# -------------------------------------------------------------------------
def perform_config(self):
"""