* Provide access to the raw, non-pretty-printed logfiles.

Unfortunately necessary for large logs.
This commit is contained in:
Eelco Dolstra
2009-03-14 23:27:08 +00:00
parent 4404800ad8
commit eeddf5752d
4 changed files with 32 additions and 24 deletions

View File

@ -163,6 +163,7 @@
<th>Logfile:</th>
<td>
<a href="[% c.uri_for('/build' build.id 'log') %]"><strong>Available</strong></a>
(<a href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>)
</td>
</tr>
[% END %]
@ -249,7 +250,7 @@
<span class="error">Failed: [% HTML.escape(step.errormsg) %]</span>
[% END %]
[% IF step.logfile %]
(<a href="[% log %]">log</a>)
(<a href="[% log %]">log</a>, <a href="[% "$log/raw" %]">raw</a>)
[% END %]
</td>
</tr>

View File

@ -33,14 +33,12 @@
[% BLOCK renderFullJobName %]
<tt>
[% INCLUDE renderProjectName %]:[% INCLUDE renderJobsetName %]:[% INCLUDE renderJobName %]
</a>
</tt>
[% END %]
[% BLOCK renderFullJobNameOfBuild %]
<tt>
[% INCLUDE renderFullJobName project=build.get_column("project") jobset = build.get_column("jobset") job = build.get_column("job") %]
</a>
[% END %]

View File

@ -1,6 +1,9 @@
[% WRAPPER layout.tt title="Logfile" %]
[% PROCESS common.tt %]
<h1>Logfile for <tt>[% build.project.name %]:[% build.job %]</tt> build [% build.id %][%IF step %], step [% step.stepnr %] (<tt>[% step.outpath %]</tt>)[% END %]</h1>
<h1>Logfile for [% INCLUDE renderFullJobNameOfBuild %] build [% build.id %][%IF step %] step [% step.stepnr %][% END %]</h1>
<p>Below is the logfile of the <a href="[% c.uri_for('/build' build.id) %]">build</a> producing Nix store path <tt>[% step.outpath %]</tt>.</p>
<div class="buildlog">
[% logtext -%]