diff --git a/run_app.py b/run_app.py index c2fda6436..0ecca7b7a 100644 --- a/run_app.py +++ b/run_app.py @@ -5,11 +5,12 @@ import sys import threading from subprocess import Popen, check_call +from typing import TextIO from dotenv import load_dotenv -class LogPipe(threading.Thread): +class LogPipe(threading.Thread, TextIO): """ boilerplate abstraction for redirecting the logs of a process """ def __init__(self, level): """Setup the object with a logger and a loglevel @@ -73,8 +74,8 @@ def main(): ] ) # this is actually kooky if you think about it - sys.stdout = LogPipe(logging.INFO) # type: ignore - sys.stderr = LogPipe(logging.ERROR) # type: ignore + sys.stdout = LogPipe(logging.INFO) + sys.stderr = LogPipe(logging.ERROR) username, password, python_ver = get_backend_env() base_url = get_frontend_env() os.system('docker compose run --rm init-mongo')