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 0599847898
commit e7dc46a03a

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