spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject git commit: Fix for PR #195 for Java 6
Date Sun, 06 Apr 2014 02:08:34 GMT
Repository: spark
Updated Branches:
  refs/heads/master 6e88583ae -> 890d63bd4


Fix for PR #195 for Java 6

Use Java 6's recommended equivalent of Java 7's Logger.getGlobal() to retain Java 6 compatibility.
See PR #195

Author: Sean Owen <sowen@cloudera.com>

Closes #334 from srowen/FixPR195ForJava6 and squashes the following commits:

f92fbd3 [Sean Owen] Use Java 6's recommended equivalent of Java 7's Logger.getGlobal() to
retain Java 6 compatibility


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/890d63bd
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/890d63bd
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/890d63bd

Branch: refs/heads/master
Commit: 890d63bd4e16296ac70e151b3754727ea42b583c
Parents: 6e88583
Author: Sean Owen <sowen@cloudera.com>
Authored: Sat Apr 5 19:08:24 2014 -0700
Committer: Patrick Wendell <pwendell@gmail.com>
Committed: Sat Apr 5 19:08:24 2014 -0700

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/890d63bd/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala b/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala
index 114bfbb..505ad0a 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala
@@ -103,7 +103,7 @@ private[sql] object ParquetRelation {
     SLF4JBridgeHandler.install()
     for(name <- loggerNames) {
       val logger = Logger.getLogger(name)
-      logger.setParent(Logger.getGlobal)
+      logger.setParent(Logger.getLogger(Logger.GLOBAL_LOGGER_NAME))
       logger.setUseParentHandlers(true)
     }
   }


Mime
View raw message