Skip to content

Commit 8a61e9c

Browse files
committed
tail_logfile: never look at /usr/local/apache/logs/error_log
That is ancient and irrelevant, even in testing.
1 parent eb329e8 commit 8a61e9c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • lib/pause_2017/PAUSE/Web/Controller

lib/pause_2017/PAUSE/Web/Controller/User.pm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,7 @@ sub tail_logfile {
302302

303303
my $tail = $req->param("pause99_tail_logfile_1") || 5000;
304304
my $file = $PAUSE::Config->{PAUSE_LOG};
305-
if ($PAUSE::Config->{TESTHOST}) {
306-
$file = "/usr/local/apache/logs/error_log"; # for testing
307-
}
305+
308306
open my $fh, "<", $file or die "Could not open $file: $!";
309307
seek $fh, -$tail, 2;
310308
local($/);

0 commit comments

Comments
 (0)