stager/lib/vcap/stager/task.rb
def capture_staging_log(staged_dir, task_logger)
    staging_log_path = File.join(staged_dir, "logs", "staging.log")

    return unless File.exist?(staging_log_path)

    File.open(staging_log_path, "r") do |sl|
      begin
        while line = sl.readline
          line.chomp!
          task_logger.info(line)
        end
      rescue EOFError
      end
    end

    nil
  end
# Appends the staging log (if any) to the user visible log
Appends the staging log (if any) to the user visible log
Appends the staging log ( if any ) to the user visible log
def capture_staging_log(staged_dir, task_logger)
    staging_log_path = File.join(staged_dir, "logs", "staging.log")
    return unless File.exist?(staging_log_path)
    File.open(staging_log_path, "r") do |sl|
      begin
        while line = sl.readline
          line.chomp!
          task_logger.info(line)
        end
      rescue EOFError
      end
    end
    nil
  end
def capture_staging_log ( staged_dir , task_logger ) staging_log_path = File . join ( staged_dir , "logs" , "staging.log" ) return unless File . exist? ( staging_log_path ) File . open ( staging_log_path , "r" ) do | sl | begin while line = sl . readline line . chomp! task_logger . info ( line ) end rescue EOFError end end nil end
Appends the staging log (if any) to the user visible log
Appends the staging log ( if any ) to the user visible log
staged_dir
task_logger