* hydra: enable pp'ing of logs for bigger files again

This commit is contained in:
Rob Vermaas 2009-11-25 09:39:03 +00:00
parent 94634773b1
commit 42c7bb57e8

View file

@ -67,12 +67,6 @@ sub showLog {
notFound($c, "Log file $path no longer exists.") unless -f $path;
# Don't do pretty printing for large logs, because the XSLT
# processing is rather slow.
if (!$mode && stat($path)->size >= (256 * 1024)) {
$mode = "raw";
}
if (!$mode) {
# !!! quick hack
my $pipeline = ($path =~ /.bz2$/ ? "cat $path | bzip2 -d" : "cat $path")