Closed achilleas-k closed 5 years ago
On Windows, file.Truncate(0) fails for the logfile because it's open and Windows locks open files. The trimming fails and the logfile can grow to very large sizes.
file.Truncate(0)
https://github.com/G-Node/gin-cli/blob/b25ad01a7a6e99c5b84ae1532ad41ac06d858722/ginclient/log/log.go#L36
On Windows,
file.Truncate(0)
fails for the logfile because it's open and Windows locks open files. The trimming fails and the logfile can grow to very large sizes.https://github.com/G-Node/gin-cli/blob/b25ad01a7a6e99c5b84ae1532ad41ac06d858722/ginclient/log/log.go#L36