[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:
parent
8942353905
commit
9112f31bb8
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue