[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 <ozawa@apache.org>

Closes #16570 from oza/SPARK-19207.
This commit is contained in:
Tsuyoshi Ozawa 2017-01-15 11:11:21 +00:00 committed by Sean Owen
parent 8942353905
commit 9112f31bb8
No known key found for this signature in database
GPG key ID: BEB3956D6717BDDC

View file

@ -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() {