From ee23b115663ab5f5141212469afd6a98dcfbceaa Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 12 Apr 2012 05:47:36 +0000 Subject: [PATCH] change all logger calls to put xcat msgs into local4 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12213 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/tools/reorgtbls | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-server/share/xcat/tools/reorgtbls b/xCAT-server/share/xcat/tools/reorgtbls index e440303ef..990cad5d0 100755 --- a/xCAT-server/share/xcat/tools/reorgtbls +++ b/xCAT-server/share/xcat/tools/reorgtbls @@ -53,7 +53,7 @@ my $DBname = xCAT::Utils->get_DBName; if ($DBname ne "DB2") { print " Reorg of table only supported for DB2 database\n"; - `logger -txcat " reorgtbls:Only supports DB2 database"` ; + `logger -p local4.err -txcat " reorgtbls:Only supports DB2 database"` ; exit 1; } @@ -64,7 +64,7 @@ if ($tablelist) { # input list of tables @tablist = xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) { - `logger -txcat " reorgtbls:error in select tabname from syscat.tables"` ; + `logger -p local4.err -txcat " reorgtbls:error in select tabname from syscat.tables"` ; exit 1; } } @@ -101,17 +101,17 @@ foreach my $table (@tablist) { xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) { - `logger -txcat " reorgtbls:error $cmd"`; + `logger -p local4.warning -txcat " reorgtbls:error $cmd"`; } else { - `logger -txcat " reorgtbls:reorg indexes for $table"`; + `logger -p local4.info -txcat " reorgtbls:reorg indexes for $table"`; } $cmd="$::XCATROOT/sbin/runsqlcmd \"reorg table $table inplace allow write access;\""; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) { - `logger -txcat " reorgtbls:error $cmd"`; + `logger -p local4.warning -txcat " reorgtbls:error $cmd"`; } else { - `logger -txcat " reorgtbls:reorg $table inplace"`; + `logger -p local4.info-txcat " reorgtbls:reorg $table inplace"`; } } exit 0;