While running copy command, the progress on console is getting overlapped with console output. This issue comes only when the --log-file flag is used to redirect the logs. I debugged a bit and found out that printProgress() function is not able to correctly calculate the starting and ending position of previously written block.
Question - How can this overlapping be solved (attaching the screenshot of console to show overlapping) ?
Command used -
go run rclone.go copy folder-path --config path-to-config-file --log-file a.txt -vP
Note - a.txt is the file in which logs are getting redirected.
Rclone version used -
- os/arch: windows/amd64
- go version: go1.12.9