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@12714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-05-15 08:17:01 +00:00
parent e7f9cd17e6
commit e8d59222e6

View File

@ -10,7 +10,7 @@
if (!$ENV{'NFSSERVER'})
{
`logger -t xcat "environment variable does not exist, exiting..."`;
`logger -t xcat -p local4.err "environment variable does not exist, exiting..."`;
exit;
}
@ -80,13 +80,13 @@ 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;
}
}