From 3a6a882646506b37b556d3d5d8bcff58fb460851 Mon Sep 17 00:00:00 2001 From: mezzovide Date: Sat, 5 Jun 2021 17:18:46 +0700 Subject: [PATCH] LogConsumer: Fix rotated log check on windows (#216) --- 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 1909a72..9faeb97 100644 --- a/src/chia_log/log_consumer.py +++ b/src/chia_log/log_consumer.py @@ -165,7 +165,7 @@ def _read_log(self) -> Tuple[ChannelStdinFile, ChannelFile, ChannelStderrFile]: def _has_rotated(self, path: PurePath) -> bool: stdin, stdout, stderr = self._ssh_client.exec_command( - f"powershell.exe Write-Host((Get-Item {str(path)}).length" + f"powershell.exe Write-Host(Get-Item {str(path)}).length" ) old_size = self._log_size