X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/252a5f7f290567f7cbcc9897a879c0a7ebe64e90..e48478841828b1dbab8b69eb9453db23b42ed63f:/apps/workbench/app/views/jobs/_show_log.html.erb diff --git a/apps/workbench/app/views/jobs/_show_log.html.erb b/apps/workbench/app/views/jobs/_show_log.html.erb index 02ad2b7398..10b7fa1c4e 100644 --- a/apps/workbench/app/views/jobs/_show_log.html.erb +++ b/apps/workbench/app/views/jobs/_show_log.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% if !@object.log %> -
<%= @object.stderr_log_lines(Rails.configuration.running_job_log_records_to_fetch).join("\n") %> -
+ ><%= @object.stderr_log_lines(Rails.configuration.Workbench.RunningJobLogRecordsToFetch).join("\n") %> + <%# Applying a long throttle suppresses the auto-refresh of this partial that would normally be triggered by arv-log-event. %> @@ -64,13 +68,13 @@ var makeFilter = function() { <% logcollection = Collection.find @object.log %> <% if logcollection %> var log_size = <%= logcollection.files[0][2] %> - var log_maxbytes = <%= Rails.configuration.log_viewer_max_bytes %>; + var log_maxbytes = <%= Rails.configuration.Workbench.LogViewerMaxBytes %>; var logcollection_url = '<%=j url_for logcollection %>/<%=j logcollection.files[0][1] %>'; $("#log-viewer-download-url").attr('href', logcollection_url); $("#log-viewer-download-pane").show(); var headers = {}; if (log_size > log_maxbytes) { - headers['Range'] = 'bytes=0-' + log_maxbytes; + headers['Range'] = 'bytes=0-' + (log_maxbytes - 1); } var ajax_opts = { dataType: 'text', headers: headers }; load_log();