Verbessertes Logging #64
2
app.py
2
app.py
@ -20,7 +20,7 @@ app = Flask(__name__)
|
|||||||
loglevel = os.getenv("KI_LOGLEVEL", logging.WARNING)
|
loglevel = os.getenv("KI_LOGLEVEL", logging.WARNING)
|
||||||
loglevel = int(loglevel)
|
loglevel = int(loglevel)
|
||||||
app.logger.setLevel(loglevel)
|
app.logger.setLevel(loglevel)
|
||||||
logging.basicConfig(level=loglevel)
|
logging.basicConfig(level=loglevel, format='[%(asctime)s] %(levelname)s [%(name)s] %(message)s') # configure root logger as fallback
|
||||||
|
|
||||||
set_library_log_detail_level(BASIC)
|
set_library_log_detail_level(BASIC)
|
||||||
ldap3_logger.addHandler(default_handler)
|
ldap3_logger.addHandler(default_handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user