added log level to config and commented code for starting the log
This commit is contained in:
@@ -3,6 +3,17 @@
|
||||
from ldap3 import Connection, Server, ANONYMOUS, SIMPLE, SYNC, ASYNC
|
||||
from getpass import getpass
|
||||
import configparser
|
||||
import logging
|
||||
|
||||
#logger = logging.getLogger(__main__)
|
||||
#logger.setLevel(logging.INFO)
|
||||
|
||||
#logging.basicConfig(level=logging.INFO,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
|
||||
|
||||
#logLevel = config['DEFAULT']['logLevel']
|
||||
#logLevel = debug
|
||||
|
||||
#logging.basicConfig(level=logging.logLevel,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
|
||||
|
||||
# import the config file
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
Reference in New Issue
Block a user