Author: daijy
Date: Thu Aug 20 22:17:06 2009
New Revision: 806379

URL: http://svn.apache.org/viewvc?rev=806379&view=rev
Log:
PIG-923: Allow setting logfile location in pig.properties

Modified:
    hadoop/pig/trunk/CHANGES.txt
    hadoop/pig/trunk/src/org/apache/pig/Main.java

Modified: hadoop/pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=806379&r1=806378&r2=806379&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Thu Aug 20 22:17:06 2009
@@ -28,6 +28,8 @@
 
 IMPROVEMENTS
 
+PIG-923: Allow specifying log file location through pig.properties (dvryaboy 
through daijy)
+
 PIG-926: Merge-Join phase 2 (ashutoshc via pradeepkth)
 
 PIG-845: PERFORMANCE: Merge Join (ashutoshc via pradeepkth)

Modified: hadoop/pig/trunk/src/org/apache/pig/Main.java
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/Main.java?rev=806379&r1=806378&r2=806379&view=diff
==============================================================================
--- hadoop/pig/trunk/src/org/apache/pig/Main.java (original)
+++ hadoop/pig/trunk/src/org/apache/pig/Main.java Thu Aug 20 22:17:06 2009
@@ -268,8 +268,8 @@
         configureLog4J(properties, pigContext);
         
         if(logFileName == null && !userSpecifiedLog) {
-            logFileName = validateLogFile(null, null);
-        }
+           logFileName = 
validateLogFile(properties.getProperty("pig.logfile"), null);
+       }
         
         if(logFileName != null) {
             log.info("Logging error messages to: " + logFileName);


Reply via email to