File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed
Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change 33"""
44
55import os
6- from logging .config import dictConfig
76import logging
87
98import csh_ldap
1413
1514from ._version import __version__
1615
17- # Logger configuration
18- dictConfig ({
19- "version" : 1 ,
20- "formatters" : {"default" : {
21- "format" : "[%(asctime)s] %(levelname)s in %(module)s: %(message)s" ,
22- }},
23- "handlers" : {"packet" : {
24- "class" : "logging.StreamHandler" ,
25- "stream" : "ext://sys.stdout" ,
26- "level" : "DEBUG" ,
27- "formatter" : "default"
28- }},
29- "root" : {
30- "level" : "DEBUG" ,
31- "handlers" : ["packet" ]
32- }
33- })
34-
3516app = Flask (__name__ )
3617
3718# Load default configuration and any environment variable overrides
4223 app .config .from_pyfile (os .path .join (os .getcwd (), "config.py" ))
4324
4425app .config ["VERSION" ] = __version__
26+
27+ # Logger configuration
4528logging .getLogger ().setLevel (app .config ["LOG_LEVEL" ])
4629
4730# Initialize the extensions
You can’t perform that action at this time.
0 commit comments