snaketail-net
snaketail-net copied to clipboard
Log files get stale
I have 2 Windows machines, an always-on Server and a Workstation that gets suspended overnight. The Server runs some software that generates log files, also residing on the server. The Workstation runs Snaketail that monitors them. After I resume the workstation, the Shaketail does not show changes in log files that happened overnight. Closing the program and reopening the same session does not help, but if I close the session and drag-and-drop the log files onto Snaketail, the appear properly. Thank you.
SnakeTail tries to perform explicit refresh of the log-file folder avoid the issue with stale network-directories:
https://github.com/snakefoot/snaketail-net/blob/1980e51f0413d7590537a39a1715a43de2961d83/SnakeTail/LogFileStream.cs#L69-L73
https://github.com/snakefoot/snaketail-net/blob/1980e51f0413d7590537a39a1715a43de2961d83/SnakeTail/LogFileStream.cs#L145-L153
If you know of way to improve this, then please create a pull-request.
Closing due to inactivity. Pull-requests are ofcourse wellcome