diff options
author | Sean Owen <sowen@cloudera.com> | 2014-04-05 19:08:24 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-04-05 19:08:24 -0700 |
commit | 890d63bd4e16296ac70e151b3754727ea42b583c (patch) | |
tree | b8fa2b591b29841d6d554fe5acfa059c48ba2f25 /sql/core | |
parent | 6e88583aef7d8caf59d53c9fcb659a62d2cd6051 (diff) | |
download | spark-890d63bd4e16296ac70e151b3754727ea42b583c.tar.gz spark-890d63bd4e16296ac70e151b3754727ea42b583c.tar.bz2 spark-890d63bd4e16296ac70e151b3754727ea42b583c.zip |
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
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetRelation.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 114bfbb719..505ad0a2c7 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) } } |