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