really fix slow log file output