You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logs_controller.rb
    path of file: ./repos/open-build-service/src/api/app/controllers/webui/cloud/upload_job
    
    the code of the file until where you have to start completion: module Webui
  modul
    
        def set_log
          @upload_job = ::Cloud::User::UploadJob.find_by(job_id: params[:upload_id])
          return if @upload_job.present?

          flash[:error] = "No log file found for #{params[:upload_id]} found."
          redirect_to cloud_upload_index_path
        end