We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb329e8 commit 8a61e9cCopy full SHA for 8a61e9c
1 file changed
lib/pause_2017/PAUSE/Web/Controller/User.pm
@@ -302,9 +302,7 @@ sub tail_logfile {
302
303
my $tail = $req->param("pause99_tail_logfile_1") || 5000;
304
my $file = $PAUSE::Config->{PAUSE_LOG};
305
- if ($PAUSE::Config->{TESTHOST}) {
306
- $file = "/usr/local/apache/logs/error_log"; # for testing
307
- }
+
308
open my $fh, "<", $file or die "Could not open $file: $!";
309
seek $fh, -$tail, 2;
310
local($/);
0 commit comments