From 1220ac3bdce2a95ed31ea1ffaffb10babb61af87 Mon Sep 17 00:00:00 2001 From: xuweibj Date: Thu, 7 Dec 2017 14:01:18 +0800 Subject: [PATCH] Ignore syslog error in monitorctrl when setNodeStatusAttributes (#4459) --- xCAT-server/lib/xcat/monitoring/monitorctrl.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm index 8d278aeaa..12adfc9e7 100644 --- a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm +++ b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm @@ -704,9 +704,7 @@ sub setNodeStatusAttributes { $updates{'status'} = $_; $updates{'statustime'} = $currtime; my $nodestate = "@$nodes status: $updates{'status'} statustime: $updates{'statustime'}"; - openlog('xcat', 'ndelay', 'local4'); - syslog('local4|info', '%s', $nodestate); - closelog(); + xCAT::MsgUtils->message('S', "$nodestate"); my $where_clause; my $dbname = xCAT::Utils->get_DBName();