results = []
log_history = Log.where(event_type: 'transient-log-entry',
- object_uuid: job_uuids).order('id DESC').limit(5).all
+ object_uuid: job_uuids).order('id DESC').limit(20).all
if !log_history.results.empty?
- results = log_history.results.reverse
+ reversed_results = log_history.results.reverse
+ reversed_results.each do |entry|
+ summary = entry.summary
+ results = results.concat summary.split("\n")
+ end
end
return results
<% log_history = pipieline_log_history(pipeline_job_uuids) %>
<div id="pipeline_event_log_history_div">
<% log_history.each do |entry| %>
- <%=entry.summary%><br/>
+ <%=entry%><br/>
<% end %>
</div>
<div class="arv-log-event-listener arv-log-event-handler-append-logs" id="pipeline_event_log_div" data-object-uuids="<%=pipeline_job_uuids.join(" ")%>"/>