Add more logging for execution requests

This commit is contained in:
Sebastian Serth
2021-11-18 14:18:41 +01:00
parent c90e02e4f1
commit 5aee2aaba8
2 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,7 @@ class Submission < ApplicationRecord
runner = Runner.for(user, exercise.execution_environment)
files = collect_files
files.reject!(&:teacher_defined_assessment?) if cause == 'run'
Rails.logger.debug { "#{Time.zone.now.getutc.inspect}: Copying files to Runner #{runner.id} for #{user_type} #{user_id} and Submission #{id}." }
runner.copy_files(files)
rescue Runner::Error => e
e.waiting_duration = Time.zone.now - request_time