forked from lix-project/hydra
* hydra: enable pp'ing of logs for bigger files again
This commit is contained in:
parent
94634773b1
commit
42c7bb57e8
|
@ -67,12 +67,6 @@ sub showLog {
|
||||||
|
|
||||||
notFound($c, "Log file $path no longer exists.") unless -f $path;
|
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) {
|
if (!$mode) {
|
||||||
# !!! quick hack
|
# !!! quick hack
|
||||||
my $pipeline = ($path =~ /.bz2$/ ? "cat $path | bzip2 -d" : "cat $path")
|
my $pipeline = ($path =~ /.bz2$/ ? "cat $path | bzip2 -d" : "cat $path")
|
||||||
|
|
Loading…
Reference in a new issue