From a6338d15a742cde8dc3e4c7f7bb643d1953f5ef8 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 24 Sep 2010 11:48:46 +0000 Subject: [PATCH] fix 3053535, syslogging everything as error ( shows up on AIX) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7605 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/MsgUtils.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/MsgUtils.pm b/perl-xCAT/xCAT/MsgUtils.pm index adf94190c..1a9082755 100644 --- a/perl-xCAT/xCAT/MsgUtils.pm +++ b/perl-xCAT/xCAT/MsgUtils.pm @@ -459,7 +459,11 @@ sub message eval { openlog("xCAT", '', 'local4'); setlogsock(["tcp", "unix", "stream"]); - syslog("err", $rsp); + if ($sev eq 'SE') { + syslog("err", $rsp); + } else { + syslog("info", $rsp); + } closelog(); }; my $errstr = $@;