log file rename was in the wrong place