From ba0a9dd9752943cb057af52ae2b2ac7928aab7b4 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 12 Apr 2012 05:26:55 +0000 Subject: [PATCH] change all logger calls to put xcat msgs into local4 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/ExtTab.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/ExtTab.pm b/perl-xCAT/xCAT/ExtTab.pm index d24ef3059..e0ad66fd3 100644 --- a/perl-xCAT/xCAT/ExtTab.pm +++ b/perl-xCAT/xCAT/ExtTab.pm @@ -35,7 +35,7 @@ foreach (@extSchema) { if ($@) { $warning ="Warning: The user defined database table schema file $file cannot be located or has compiling errors.\n"; print $warning; - `logger -t xCAT $warning`; + `logger -p local4.warning -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; - `logger -t xCAT $warning`; + `logger -p local4.warning -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; - `logger -t xCAT $warning`; + `logger -p local4.warning -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; - `logger -t xCAT $warning`; + `logger -p local4.warning -t xCAT $warning`; } else { #print "\ngot here objname=$objname, attrname=" . $h->{attr_name} . "\n"; push(@{$ext_defspec{$objname}->{'attrs'}}, $h);