This commit is contained in:
parent
7c616aaf1a
commit
ac8af00e84
|
@ -68,7 +68,7 @@ sub view_log : Chained('build') PathPart('log') Args(0) {
|
||||||
sub loadLog {
|
sub loadLog {
|
||||||
my ($c, $path) = @_;
|
my ($c, $path) = @_;
|
||||||
|
|
||||||
die unless defined $path;
|
notFound($c, "Log file $path no longer exists.") unless -f $path;
|
||||||
|
|
||||||
# !!! 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