X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/67492abc51acc09abec9e754fc1d845679db3e87..43a2aef67a96033f54e9f19cd9788e059e72115a:/apps/workbench/app/helpers/pipeline_instances_helper.rb diff --git a/apps/workbench/app/helpers/pipeline_instances_helper.rb b/apps/workbench/app/helpers/pipeline_instances_helper.rb index b39bfb1e4f..56e85dbd79 100644 --- a/apps/workbench/app/helpers/pipeline_instances_helper.rb +++ b/apps/workbench/app/helpers/pipeline_instances_helper.rb @@ -25,13 +25,18 @@ module PipelineInstancesHelper def pipieline_log_history(job_uuids) results = [] - log_history = Log.where(event_type: 'stderr', object_uuid: job_uuids). - order('id DESC').limit(20).all + log_history = Log.where(event_type: 'stderr', + object_uuid: job_uuids).order('id DESC') if !log_history.results.empty? reversed_results = log_history.results.reverse reversed_results.each do |entry| - summary = entry.summary - results = results.concat summary.split("\n") + if entry.andand.properties + properties = entry.properties + text = properties[:text] + if text + results = results.concat text.split("\n") + end + end end end