From 086b3ccf9a6b4ed1e48c572e47caeb9508a883bf Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Fri, 21 Nov 2008 09:34:44 -0700 Subject: [PATCH] bug in rebuild_zebra verbose logging - found another print I didn't want to see all the time Add the phrase 'if ( $verbose_logging )' to the two print statements concerning the skipping of biblio or authority records. I recently had to split biblio and authority index updating in my cron script ( had some really big records so had to add the -x switch which should only be used on biblios accourding to the help ). So I noticed that rebuild_zebra.pl printed messages that it was skipping biblios or authorities. This patch is to conditionalize those prints based on the verbose logging switch. Signed-off-by: Galen Charlton --- misc/migration_tools/rebuild_zebra.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 731aee49b3..5e6d985c4c 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -121,13 +121,13 @@ if ($do_munge) { if ($authorities) { index_records('authority', $directory, $skip_export, $process_zebraqueue, $as_xml, $noxml, $do_not_clear_zebraqueue, $verbose_logging, $zebraidx_log_opt); } else { - print "skipping authorities\n"; + print "skipping authorities\n" if ( $verbose_logging ); } if ($biblios) { index_records('biblio', $directory, $skip_export, $process_zebraqueue, $as_xml, $noxml, $do_not_clear_zebraqueue, $verbose_logging, $zebraidx_log_opt); } else { - print "skipping biblios\n"; + print "skipping biblios\n" if ( $verbose_logging ); } -- 2.39.5