Handle ReadTimeout error

This commit is contained in:
mungai-njoroge
2023-07-01 20:39:09 +03:00
parent f5de09bd09
commit 95214396e7
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -2,6 +2,7 @@
This file is used to run the application.
"""
import logging
# import sys
from app.api import create_api
from app.arg_handler import HandleArgs
@@ -13,6 +14,8 @@ from app.start_info_logger import log_startup_info
from app.utils.filesystem import get_home_res_path
from app.utils.threading import background
# sys.stderr = open("./logs.txt", "w")
werkzeug = logging.getLogger("werkzeug")
werkzeug.setLevel(logging.ERROR)