Shouldn't we call rotate_logfile here?