Skip to content

Commit d696f71

Browse files
committed
docs: clarify that Hearthstone log files only grow
1 parent 04271a5 commit d696f71

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

HearthWatcher/LogReader/LogFileWatcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ private void ReadLogFile()
210210
Thread.Sleep(LogWatcher.UpdateDelay);
211211
continue;
212212
}
213+
// Note: Hearthstone will only ever append to the log file. When it restarts, it moves the file and creates a new, empty one.
214+
// As such we don't need to worry about the Length being smaller than the offset.
213215
using(var sr = new StreamReader(fs))
214216
{
215217
string line;

0 commit comments

Comments
 (0)