A lot of times the purpose of looking at the build logs is to look at the error which usually appear at the end of the log. Provide a mechanism to look at the tail instead of downloading the entire log. (offset = -2000 is probably reasonable enough as a default?)
Unsure if it applies to a wider usecase. Please consider for inclusion. Signed-Off-by: Kedar Sovani <[email protected]> --- ./www/kojiweb/taskinfo.chtml.orig 2009-04-27 11:41:35.000000000 +0200 +++ ./www/kojiweb/taskinfo.chtml 2009-05-03 10:06:55.000000000 +0200 @@ -287,7 +287,11 @@ <th>Output</th> <td> #for $filename in $output - <a href="getfile?taskID=$task.id&name=$urllib.quote($filename)">$filename</a><br/> + <a href="getfile?taskID=$task.id&name=$urllib.quote($filename)">$filename</a> + #if $filename == 'build.log' or $filename == 'root.log' + (<a href="getfile?taskID=$task.id&name=$urllib.quote($filename)&offset=-2000">tail</a>) + #end if + <br/> #end for #if $task.state not in ($koji.TASK_STATES.CLOSED, $koji.TASK_STATES.CANCELED, $koji.TASK_STATES.FAILED) and \ $task.method in ('buildSRPMFromSCM', 'buildArch', 'createrepo') -- Fedora-buildsys-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/fedora-buildsys-list
