flask-ldap3-login inadvertently adds the console handler to the root level logger by calling an uninitialized handler in forms.py:
logging.debug('Validating LDAPLoginForm against LDAP')
...
logging.debug("Form validation failed before we had a chance to check ldap. Reasons: '{0}'".format(self.errors))
This causes log messages from all other, unrelated, loggers to be duplicated on the console.
Could you please kindly fix code by using the log variable instead, which you already defined in code on the line 8
log.debug('Validating LDAPLoginForm against LDAP')
...
log.debug("Form validation failed before we had a chance to check ldap. Reasons: '{0}'".format(self.errors))
flask-ldap3-login inadvertently adds the console handler to the root level logger by calling an uninitialized handler in forms.py:
This causes log messages from all other, unrelated, loggers to be duplicated on the console.
Could you please kindly fix code by using the log variable instead, which you already defined in code on the line 8