Repository: spark
Updated Branches:
  refs/heads/master 894235390 -> 9112f31bb


[SPARK-19207][SQL] LocalSparkSession should use Slf4JLoggerFactory.INSTANCE

## What changes were proposed in this pull request?

Using Slf4JLoggerFactory.INSTANCE instead of creating Slf4JLoggerFactory's 
object with constructor. It's deprecated.

## How was this patch tested?

With running StateStoreRDDSuite.

Author: Tsuyoshi Ozawa <oz...@apache.org>

Closes #16570 from oza/SPARK-19207.


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

Branch: refs/heads/master
Commit: 9112f31bb88bf68fa113dad5eeb5d748979ba339
Parents: 8942353
Author: Tsuyoshi Ozawa <oz...@apache.org>
Authored: Sun Jan 15 11:11:21 2017 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Sun Jan 15 11:11:21 2017 +0000

----------------------------------------------------------------------
 .../src/test/scala/org/apache/spark/sql/LocalSparkSession.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/9112f31b/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala 
b/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala
index 1732977..d66a690 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala
@@ -29,7 +29,7 @@ trait LocalSparkSession extends BeforeAndAfterEach with 
BeforeAndAfterAll { self
 
   override def beforeAll() {
     super.beforeAll()
-    InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory())
+    InternalLoggerFactory.setDefaultFactory(Slf4JLoggerFactory.INSTANCE)
   }
 
   override def afterEach() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to