Don't disable flask logging in prod.
This commit is contained in:
parent
39d352ebec
commit
6041e8a4ac
1 changed files with 3 additions and 5 deletions
|
@ -51,9 +51,6 @@ class BAPSicleServer:
|
||||||
|
|
||||||
startServer()
|
startServer()
|
||||||
|
|
||||||
# def __del__(self):
|
|
||||||
# stopServer()
|
|
||||||
|
|
||||||
def get_flask(self):
|
def get_flask(self):
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
@ -613,8 +610,9 @@ def startServer():
|
||||||
setproctitle(process_title)
|
setproctitle(process_title)
|
||||||
CORS(app, supports_credentials=True) # Allow ALL CORS!!!
|
CORS(app, supports_credentials=True) # Allow ALL CORS!!!
|
||||||
|
|
||||||
log = logging.getLogger("werkzeug")
|
if not isBundelled():
|
||||||
log.disabled = True
|
log = logging.getLogger("werkzeug")
|
||||||
|
log.disabled = True
|
||||||
|
|
||||||
app.logger.disabled = True
|
app.logger.disabled = True
|
||||||
app.run(
|
app.run(
|
||||||
|
|
Loading…
Reference in a new issue