fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12706 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -40,7 +40,7 @@ if (!-d $logdir) { | ||||
| $::sdate = `/bin/date`; | ||||
| chomp $::sdate; | ||||
| my $logfile = $logdir . "/xcat.log"; | ||||
| `logger -t xcat $logfile`; | ||||
| `logger -t xcat -p local4.info $logfile`; | ||||
|  | ||||
| # this log should not contain much so it might be ok to let it grow? | ||||
| # at least we'll have the errors preserved | ||||
| @@ -251,7 +251,7 @@ if (-f $scriptname) { | ||||
|         my $tzcmd = qq~/usr/bin/chtz $tz >/dev/null 2>&1~; | ||||
|         if (&runcmd($tzcmd) != 0) { | ||||
|             my $msg = "$::sdate xcataixpost: Could not set timezone.\n"; | ||||
|             `logger -t xcat $msg`; | ||||
|             `logger -t xcat -p local4.warning $msg`; | ||||
|         } else { | ||||
| 			&runcmd("export TZ=$tz"); | ||||
| 		} | ||||
| @@ -357,7 +357,7 @@ if (-f $scriptname) { | ||||
| 		} | ||||
| 		if (&runcmd($pwcmd) != 0) { | ||||
| 			my $msg = "$::sdate xcataixpost: Could not set root password.\n"; | ||||
| 			`logger -t xcat $msg`; | ||||
| 			`logger -t xcat -p local4.warning $msg`; | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user