You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2016/01/01 22:24:11 UTC
spark git commit: [SPARK-12592][SQL][TEST] Don't mute Spark loggers
in TestHive.reset()
Repository: spark
Updated Branches:
refs/heads/master ad5b7cfcc -> 01a29866b
[SPARK-12592][SQL][TEST] Don't mute Spark loggers in TestHive.reset()
There's a hack done in `TestHive.reset()`, which intended to mute noisy Hive loggers. However, Spark testing loggers are also muted.
Author: Cheng Lian <li...@databricks.com>
Closes #10540 from liancheng/spark-12592.dont-mute-spark-loggers.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/01a29866
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/01a29866
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/01a29866
Branch: refs/heads/master
Commit: 01a29866b1da23157fec41e4b037b7dbe4ffda16
Parents: ad5b7cf
Author: Cheng Lian <li...@databricks.com>
Authored: Fri Jan 1 13:24:09 2016 -0800
Committer: Reynold Xin <rx...@databricks.com>
Committed: Fri Jan 1 13:24:09 2016 -0800
----------------------------------------------------------------------
.../main/scala/org/apache/spark/sql/hive/test/TestHive.scala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/01a29866/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
----------------------------------------------------------------------
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
index 9779254..013fbab 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
@@ -410,7 +410,10 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) {
try {
// HACK: Hive is too noisy by default.
org.apache.log4j.LogManager.getCurrentLoggers.asScala.foreach { log =>
- log.asInstanceOf[org.apache.log4j.Logger].setLevel(org.apache.log4j.Level.WARN)
+ val logger = log.asInstanceOf[org.apache.log4j.Logger]
+ if (!logger.getName.contains("org.apache.spark")) {
+ logger.setLevel(org.apache.log4j.Level.WARN)
+ }
}
cacheManager.clearCache()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org