Ensure we don't miss log lines during file rotation