fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-05-15 07:17:36 +00:00
parent fa774a34cc
commit b9a4cdf971

View File

@ -57,13 +57,14 @@ sub runcmd
$rc = $? >> 8;
if ($rc > 0)
{
`logger -t xcat "runcmd $cmd failed, error message is:"`;
`logger -t xcat -p local4.err "runcmd $cmd failed, error message is:"`;
my $errmsg;
foreach my $err (@::outref)
{
$errmsg .= $err;
}
`logger -t xcat "$errmsg"`;
`logger -t xcat -p local4.err "$errmsg"`;
exit;
}
}