Author: daijy
Date: Fri Sep 11 20:29:32 2009
New Revision: 814014

URL: http://svn.apache.org/viewvc?rev=814014&view=rev
Log:
PIG-882: log level not propogated to loggers - duplicate message

Modified:
    hadoop/pig/branches/branch-0.4/CHANGES.txt
    hadoop/pig/branches/branch-0.4/src/org/apache/pig/Main.java

Modified: hadoop/pig/branches/branch-0.4/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.4/CHANGES.txt?rev=814014&r1=814013&r2=814014&view=diff
==============================================================================
--- hadoop/pig/branches/branch-0.4/CHANGES.txt (original)
+++ hadoop/pig/branches/branch-0.4/CHANGES.txt Fri Sep 11 20:29:32 2009
@@ -73,6 +73,8 @@
 
 BUG FIXES
 
+    PIG-882: log level not propogated to loggers - duplicate message (daijy)
+
     PIG-943: Pig crash when it cannot get counter from hadoop (daijy)
 
     PIG-935: Skewed join throws an exception when used with map keys(sriranjan

Modified: hadoop/pig/branches/branch-0.4/src/org/apache/pig/Main.java
URL: 
http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.4/src/org/apache/pig/Main.java?rev=814014&r1=814013&r2=814014&view=diff
==============================================================================
--- hadoop/pig/branches/branch-0.4/src/org/apache/pig/Main.java (original)
+++ hadoop/pig/branches/branch-0.4/src/org/apache/pig/Main.java Fri Sep 11 
20:29:32 2009
@@ -474,7 +474,8 @@
         }
     }
     if (props.size() == 0) {
-        props.setProperty("log4j.logger.org.apache.pig", 
logLevel.toString()+", PIGCONSOLE");
+        props.setProperty("log4j.rootLogger", "INFO, PIGCONSOLE");
+        props.setProperty("log4j.logger.org.apache.pig", logLevel.toString());
         props.setProperty("log4j.appender.PIGCONSOLE",
                 "org.apache.log4j.ConsoleAppender");
         props.setProperty("log4j.appender.PIGCONSOLE.layout",


Reply via email to