remove path to logger

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-08-24 19:17:41 +00:00
parent 8e646452eb
commit 950dc26e5d

View File

@ -30,12 +30,12 @@ foreach (@extSchema) {
my $modname = $1;
no strict 'refs';
my $warning;
`/bin/logger -t xCAT processing $_`;
`logger -t xCAT processing $_`;
eval {require($_)};
if ($@) {
$warning ="Warning: The user defined database table schema file $file cannot be located or has compiling errors.\n";
print $warning;
`/bin/logger -t xCAT $warning`;
`logger -t xCAT $warning`;
next;
}
if (${"xCAT_schema::" . "$modname" . "::"}{tabspec}) {
@ -44,7 +44,7 @@ foreach (@extSchema) {
if (exists($ext_tabspec{$tabname})) {
$warning = "Warning: File $file: the table name $tabname is used by other applications. Please rename the table.\n";
print $warning;
`/bin/logger -t xCAT $warning`;
`logger -t xCAT $warning`;
} else {
$ext_tabspec{$tabname}=$tabspec{$tabname};
}
@ -52,7 +52,7 @@ foreach (@extSchema) {
} else {
$warning ="\n Warning: Cannot find \%tabspec variable in the user defined database table schema file $file\n";
print $warning;
`/bin/logger -t xCAT $warning`;
`logger -t xCAT $warning`;
}
#get the defspec from each file and merge them into %ext_defspec
@ -74,7 +74,7 @@ foreach (@extSchema) {
if (exists($tmp_hash{$attrname})) {
$warning= " Warning: Conflict when adding user defined defspec from file $file. Attribute name $attrname is already defined in object $objname. \n";
print $warning;
`/bin/logger -t xCAT $warning`;
`logger -t xCAT $warning`;
} else {
#print "\ngot here objname=$objname, attrname=" . $h->{attr_name} . "\n";
push(@{$ext_defspec{$objname}->{'attrs'}}, $h);