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:
parent
2dbc51d2d7
commit
ee23b11566
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user