You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2023/06/25 02:42:51 UTC
[kyuubi] branch master updated: [KYUUBI #4985] [TEST] Fix loglevel restore behavior of `KyuubiFunSuite#withLogAppender`
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new a622c0a8e [KYUUBI #4985] [TEST] Fix loglevel restore behavior of `KyuubiFunSuite#withLogAppender`
a622c0a8e is described below
commit a622c0a8e88b7f39400b66f153ac8176c37a16f7
Author: Cheng Pan <ch...@apache.org>
AuthorDate: Sun Jun 25 10:42:41 2023 +0800
[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](https://github.com/apache/spark/issues/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
4c05bc522 [Cheng Pan] Fix loglevel restore behavior of `KyuubiFunSuite#withLogAppender`
Authored-by: Cheng Pan <ch...@apache.org>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala | 1 +
1 file changed, 1 insertion(+)
diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala
index 96a612aab..2789d7f89 100644
--- a/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala
+++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/KyuubiFunSuite.scala
@@ -102,6 +102,7 @@ trait KyuubiFunSuite extends AnyFunSuite
logger.asInstanceOf[Logger].setLevel(restoreLevels(i))
logger.asInstanceOf[Logger].get().setLevel(restoreLevels(i))
}
+ LogManager.getContext(false).asInstanceOf[LoggerContext].updateLoggers()
}
}
}