You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by jc...@apache.org on 2012/10/18 23:32:44 UTC

svn commit: r1399873 - in /pig/branches/branch-0.11: CHANGES.txt src/org/apache/pig/Main.java

Author: jcoveney
Date: Thu Oct 18 21:32:44 2012
New Revision: 1399873

URL: http://svn.apache.org/viewvc?rev=1399873&view=rev
Log:
PIG-2958: Pig tests do not appear to have a logger attached (daijyc via jcoveney)

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

Modified: pig/branches/branch-0.11/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/CHANGES.txt?rev=1399873&r1=1399872&r2=1399873&view=diff
==============================================================================
--- pig/branches/branch-0.11/CHANGES.txt (original)
+++ pig/branches/branch-0.11/CHANGES.txt Thu Oct 18 21:32:44 2012
@@ -306,6 +306,8 @@ OPTIMIZATIONS
 
 BUG FIXES
 
+PIG-2958: Pig tests do not appear to have a logger attached (daijyc via jcoveney)
+
 PIG-2926: TestPoissonSampleLoader failing on rhel environment (jcoveney)
 
 PIG-2971: Add new parameter to specify the streaming environment (jcoveney)

Modified: pig/branches/branch-0.11/src/org/apache/pig/Main.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/src/org/apache/pig/Main.java?rev=1399873&r1=1399872&r2=1399873&view=diff
==============================================================================
--- pig/branches/branch-0.11/src/org/apache/pig/Main.java (original)
+++ pig/branches/branch-0.11/src/org/apache/pig/Main.java Thu Oct 18 21:32:44 2012
@@ -919,11 +919,11 @@ private static String validateLogFile(St
             String scriptFileAbsPath;
             try {
                 scriptFileAbsPath = scriptFile.getCanonicalPath();
+                strippedDownScriptName = getFileFromCanonicalPath(scriptFileAbsPath);
             } catch (IOException ioe) {
                 log.warn("Could not compute canonical path to the script file " + ioe.getMessage());
-                return null;
+                strippedDownScriptName = null;
             }
-            strippedDownScriptName = getFileFromCanonicalPath(scriptFileAbsPath);
         }
     }