Flush the log file after logging each packet (so that if we're going