From 28860be7e8156fdd2f437956872ec2866039e8a7 Mon Sep 17 00:00:00 2001 From: skrustev Date: Wed, 5 May 2021 23:24:38 +0300 Subject: [PATCH] Potential fix to consumer hanging on Windows. --- src/chia_log/log_consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chia_log/log_consumer.py b/src/chia_log/log_consumer.py index bfcca35..a35f17f 100644 --- a/src/chia_log/log_consumer.py +++ b/src/chia_log/log_consumer.py @@ -69,7 +69,7 @@ def _consume_loop(self): logging.info(f"Consuming log file from {expanded_user_log_path}") if is_win_platform(): - consume_command_args = ["powershell.exe", "get-content", expanded_user_log_path, "-tail", "1", "-wait"] + consume_command_args = ["powershell.exe", "Get-Content", expanded_user_log_path, "-Tail", "1", "-Wait", "-ErrorAction", "SilentlyContinue"] else: consume_command_args = ["tail", "-F", expanded_user_log_path]