From ef5f9c598bb09f89efca4f45b3ced10925532e67 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 10 Aug 2008 12:47:08 +0000 Subject: [PATCH] Change to using logger for syslog instead of perl interface git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/MsgUtils.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/MsgUtils.pm b/perl-xCAT/xCAT/MsgUtils.pm index b7b071ea9..6651b3a15 100644 --- a/perl-xCAT/xCAT/MsgUtils.pm +++ b/perl-xCAT/xCAT/MsgUtils.pm @@ -280,9 +280,15 @@ sub message # If they want this msg to also go to syslog, do that now eval { - openlog("xCAT", '', 'local4'); - syslog("err", $rsp); - closelog(); + #openlog("xCAT", '', 'local4'); + #syslog("err", $rsp); + #closelog(); + # switched to logger due to hangs using Perl interface + # when syslog not running + `logger -p local4.err -t xcat $rsp`; + if ( $? != 0) { + print $stdouterrf "Error using Syslog/n"; + } }; } }