fix internal log rotation when check_interval > 0