From 4206d3ba4caf53b57d0157c7b50787ca657d9df0 Mon Sep 17 00:00:00 2001 From: Frank Fort Date: Tue, 7 Sep 2021 13:40:22 -0400 Subject: [PATCH] Remove PIPEs for subprocess since it blocks console.log --- dotaservice/dotaservice.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dotaservice/dotaservice.py b/dotaservice/dotaservice.py index 7087093..038d85c 100644 --- a/dotaservice/dotaservice.py +++ b/dotaservice/dotaservice.py @@ -274,13 +274,7 @@ async def _run_dota(self): if self.host_mode == HOST_MODE_GUI_MENU: args.extend(['+sv_lan', '0']) - # Supress stdout if the logger level is info. - stdout = None if logger.level == 'INFO' else asyncio.subprocess.PIPE - - create = asyncio.create_subprocess_exec( - *args, - stdin=asyncio.subprocess.PIPE, stdout=stdout, stderr=stdout, - ) + create = asyncio.create_subprocess_exec(*args, stdin=asyncio.subprocess.PIPE) self.process = await create task_monitor_log = asyncio.create_task(self.monitor_log())