Skip to content

Commit

Permalink
LogConsumer: Fix rotated log check on windows (martomi#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzovide authored and martomi committed Jun 5, 2021
1 parent 6096c75 commit e72a7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chia_log/log_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e72a7ec

Please sign in to comment.