This commit fixes a bug when RotatingFileHandler was always writing only
one log record to the file if it had already wrote a record before the
new one came in. This was caused by not setting write flag to false if
the buffer is empty.
Coverage remained the same when pulling cfdf53480746e328dade3dd5d16edf822735ef41 on chopachom:master into 339ef0fe287c2b89c4387e4179c24aeea345fdc9 on seanmonstar:master.
Coverage remained the same when pulling 63e0257628334bf9d8bcdd5af4fc2ea6393b8c17 on chopachom:master into 339ef0fe287c2b89c4387e4179c24aeea345fdc9 on seanmonstar:master.
This commit fixes a bug when RotatingFileHandler was always writing only one log record to the file if it had already wrote a record before the new one came in. This was caused by not setting write flag to false if the buffer is empty.