From 7013f7188968f86179bd498abc94ff58bdba1613 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Nov 2020 11:13:34 +0100 Subject: [PATCH] Bug 26854: Remove log of STDERR See discussion on comments 12-20 Signed-off-by: Jonathan Druart (cherry picked from commit c056385669cefa02e2a94f96d8edea570f3c887e) Signed-off-by: Andrew Fuerste-Henry --- tools/stage-marc-import.pl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index f291fce858..a0e7c322be 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -126,11 +126,6 @@ if ($completedJobID) { # Otherwise, the AJAX request to this script won't return properly close STDOUT; close STDERR; - my $logdir = C4::Context->config('logdir'); - if ($logdir && -d $logdir){ - my $logfile = sprintf("%s/%s",$logdir,'background-jobs.log'); - open(STDERR, '>>', $logfile); - } } else { # fork failed, so exit immediately warn "fork failed while attempting to run tools/stage-marc-import.pl as a background job: $!"; -- 2.39.5