diff --git a/debiaiServer/swagger.yaml b/debiaiServer/swagger.yaml index d4404b2e..c424f540 100644 --- a/debiaiServer/swagger.yaml +++ b/debiaiServer/swagger.yaml @@ -1,6 +1,6 @@ swagger: "2.0" info: - version: 0.29.3 + version: 0.29.4 title: DebiAI_debiaiServer_API description: DebiAI backend api contact: diff --git a/debiaiServer/websrv.py b/debiaiServer/websrv.py index de1a58d1..35a60428 100644 --- a/debiaiServer/websrv.py +++ b/debiaiServer/websrv.py @@ -1,6 +1,7 @@ import os import psutil import requests +import logging import connexion import webbrowser from flask_cors import CORS @@ -99,7 +100,8 @@ def start_server(port, reloader=True, is_dev=True): print("======================== RUN =======================", flush=True) print( " DebiAI is available at " - + colored("http://localhost:" + str(port), DEBUG_COLOR) + + colored("http://localhost:" + str(port), DEBUG_COLOR), + flush=True, ) app = create_app() if is_dev: @@ -107,6 +109,7 @@ def start_server(port, reloader=True, is_dev=True): app.run(port, debug=True, host="0.0.0.0", use_reloader=reloader) else: # Use waitress for production + logging.getLogger("requests").setLevel(logging.WARNING) serve(app, host="0.0.0.0", port=port)