From 49cd33382ca72ac593267450a01bcdc55e184a9b 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 1f0494321..83f863fb9 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(); } }