Bugzilla – Attachment 6515 Details for
Bug 7247
rebuild_zebra.pl -v should show all Zebra log output
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7247 - rebuild_zebra.pl -v should show all Zebra log output
Bug-7247---rebuildzebrapl--v-should-show-all-Zebra.patch (text/plain), 1.85 KB, created by
Chris Cormack
on 2011-12-02 08:50:29 UTC
(
hide
)
Description:
Bug 7247 - rebuild_zebra.pl -v should show all Zebra log output
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-02 08:50:29 UTC
Size:
1.85 KB
patch
obsolete
>From 0742d5175eeb7f633c16e55a7755d957243ebbf4 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Sat, 19 Nov 2011 11:49:53 +0100 >Subject: [PATCH] Bug 7247 - rebuild_zebra.pl -v should show all Zebra log > output > >Currently, -v option resets Zebra log output to default system values. > >This produce amount of log specified in system defaults which is usually >too low for debugging. > >This change explicitly forces all Zebra log output which create much more >chatter so it triggers with verbosity level 2 > >Test scenario: >1. pick koha site to reindex >2. use -v -v options to rebuild_zebra.pl to see additional output > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > misc/migration_tools/rebuild_zebra.pl | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl >index fa87f22..72ca446 100755 >--- a/misc/migration_tools/rebuild_zebra.pl >+++ b/misc/migration_tools/rebuild_zebra.pl >@@ -34,7 +34,7 @@ my $want_help; > my $as_xml; > my $process_zebraqueue; > my $do_not_clear_zebraqueue; >-my $verbose_logging; >+my $verbose_logging = 0; > my $zebraidx_log_opt = " -v none,fatal,warn "; > my $result = GetOptions( > 'd:s' => \$directory, >@@ -51,7 +51,7 @@ my $result = GetOptions( > 'x' => \$as_xml, > 'y' => \$do_not_clear_zebraqueue, > 'z' => \$process_zebraqueue, >- 'v' => \$verbose_logging, >+ 'v+' => \$verbose_logging, > ); > > >@@ -96,8 +96,8 @@ if ($noshadow) { > > # -v is for verbose, which seems backwards here because of how logging is set > # on the CLI of zebraidx. It works this way. The default is to not log much >-if ($verbose_logging) { >- $zebraidx_log_opt = ''; >+if ($verbose_logging >= 2) { >+ $zebraidx_log_opt = '-v none,fatal,warn,all'; > } > > my $use_tempdir = 0; >-- >1.7.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7247
:
6346
|
6515
|
6793
|
6833
|
6887
|
6993