From e7dc46a03a3d8bd10f92e2340f9f62651dded8f3 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 2 Jan 2014 02:02:24 -0500 Subject: [PATCH] defect 3909: make xcatd loads xCAT::Enabletrace by require instead of use to save resource --- xCAT-server/sbin/xcatd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 88a88f517..f96fcf8b1 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -13,8 +13,8 @@ BEGIN if (defined $ENV{ENABLE_TRACE_CODE}) { use lib "$ENV{'XCATROOT'}/lib/perl"; use lib "/opt/xcat/lib/perl"; - use xCAT::Enabletrace qw(loadtrace filter); - loadtrace(); + require xCAT::Enabletrace; + xCAT::Enabletrace->loadtrace(); } }