Skip to content

Commit a622c0a

Browse files
committed
[KYUUBI #4985] [TEST] Fix loglevel restore behavior of KyuubiFunSuite#withLogAppender
### _Why are the changes needed?_ This method is forked from Apache Spark, and recently, [SPARK-44074](apache/spark#41663) identified and fixed the issue about loglevel restore behavior. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request Closes #4985 from pan3793/test-log. Closes #4985 4c05bc5 [Cheng Pan] Fix loglevel restore behavior of `KyuubiFunSuite#withLogAppender` Authored-by: Cheng Pan <chengpan@apache.org> Signed-off-by: Cheng Pan <chengpan@apache.org>
1 parent c2e861b commit a622c0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ trait KyuubiFunSuite extends AnyFunSuite
102102
logger.asInstanceOf[Logger].setLevel(restoreLevels(i))
103103
logger.asInstanceOf[Logger].get().setLevel(restoreLevels(i))
104104
}
105+
LogManager.getContext(false).asInstanceOf[LoggerContext].updateLoggers()
105106
}
106107
}
107108
}

0 commit comments

Comments
 (0)