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
This commit is contained in:
immarvin 2012-04-12 05:47:36 +00:00
parent 2dbc51d2d7
commit ee23b11566

View File

@ -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;