From d723039cbaa4d7aadf515ca9e3b15aec8fec7ac5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 23 Jan 2015 12:19:48 +0000 Subject: [PATCH] [SIGNED OFF] Bug 13531 - Follow up Add logging of errors. Signed-off-by: Magnus Enger More errors are indeed showing up in the log. (I took the liberty of changing the commit message a little bit.) --- misc/migration_tools/bulkmarcimport.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index 8838303..8d1f518 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -272,6 +272,7 @@ RECORD: while ( ) { # changed to warn so able to continue with one broken record if ( defined $error ) { warn "unable to search the database for duplicates : $error"; + printlog( { id => $id || $originalid || $match, op => "match", status => "ERROR" } ) if ($logfile); next RECORD; } $debug && warn "$query $server : $totalhits"; -- 1.9.1