From 19ae949e6af0509a1a76c74d69985eb67b9d9a4d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 18 Sep 2015 07:03:13 -0400 Subject: [PATCH] Bug 14597: (QA followup) Make Logger package level Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- C4/ImportBatch.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 9f9c91c895..cb1a2313ab 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -83,6 +83,8 @@ BEGIN { ); } +our $logger = Koha::Logger->get( { category => 'C4.ImportBatch' } ); + =head1 NAME C4::ImportBatch - manage batches of imported MARC records @@ -813,7 +815,6 @@ sub BatchCommitItems { sub BatchRevertRecords { my $batch_id = shift; - my $logger = Koha::Logger->get( { category => 'C4.ImportBatch.BatchRevertRecords' } ); $logger->trace("C4::ImportBatch::BatchRevertRecords( $batch_id )"); my $record_type; @@ -872,7 +873,7 @@ sub BatchRevertRecords { my $biblionumber = $rowref->{'matched_biblionumber'}; my $oldbiblio = GetBiblio($biblionumber); - $logger->info("Biblio record $biblionumber does not exist, restoration of this record was skipped") unless $oldbiblio; + $logger->info("C4::ImportBatch::BatchRevertRecords: Biblio record $biblionumber does not exist, restoration of this record was skipped") unless $oldbiblio; next unless $oldbiblio; # Record has since been deleted. Deleted records should stay deleted. $num_items_deleted += BatchRevertItems($rowref->{'import_record_id'}, $rowref->{'matched_biblionumber'}); -- 2.39.5