defect 3909: make xcatd loads xCAT::Enabletrace by require instead of use to save resource

This commit is contained in:
daniceexi 2014-01-02 02:02:24 -05:00
parent 6d76a44409
commit 49cd33382c

View File

@ -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();
}
}