From db4b48aa0955ba4120489e2d81a245899f01420d 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 --- C4/ImportBatch.pm | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 9f9c91c..cb1a231 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'}); -- 1.7.2.5