snaketail-net icon indicating copy to clipboard operation
snaketail-net copied to clipboard

Log files get stale

Open levmin opened this issue 3 years ago • 1 comments

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.

levmin avatar Jan 07 '21 13:01 levmin

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.

snakefoot avatar Jan 07 '21 19:01 snakefoot

Closing due to inactivity. Pull-requests are ofcourse wellcome

snakefoot avatar Mar 03 '24 12:03 snakefoot