Skip to content
Snippets Groups Projects
Commit 49c4cc3a authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-139: repair 3rd party logging errors

parent 559e3136
No related branches found
No related tags found
1 merge request!96Resolve TMSS-139
......@@ -2,8 +2,11 @@ import os
import logging
logger = logging.getLogger(__name__)
logging_already_configured = len(logging.root.handlers)>0
from ldap_test import LdapServer
if not logging_already_configured:
# the 3rd party ldap_test module erroneously does a logging.basicConfig upon module import...
# logging.basicConfig should only happen in 'main'-like functions.
# so, undo the basicConfig by removing the root handlers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment