关闭flask日志
This commit is contained in:
@@ -21,6 +21,13 @@ from script.ScriptManager import ScriptManager
|
||||
from Entity.Variables import addModelToAnchorList, wdaFunctionPort
|
||||
import Entity.Variables as ev
|
||||
from Utils.JsonUtils import JsonUtils
|
||||
import logging
|
||||
|
||||
for name in ('werkzeug', 'werkzeug.serving'):
|
||||
log = logging.getLogger(name)
|
||||
log.disabled = True
|
||||
log.propagate = False
|
||||
log.handlers.clear()
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app)
|
||||
|
||||
Reference in New Issue
Block a user