Repository: incubator-gobblin
Updated Branches:
  refs/heads/master 44d870275 -> fa1932b63


[GOBBLIN-607] Reduce logging in gobblin-runtime tests

Closes #2473 from
htran1/gobblin_runtime_test_log_level


Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/fa1932b6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/fa1932b6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/fa1932b6

Branch: refs/heads/master
Commit: fa1932b637c1d2c1a40e0fb498186e7f724ce99d
Parents: 44d8702
Author: Hung Tran <[email protected]>
Authored: Tue Oct 9 10:06:58 2018 -0700
Committer: Hung Tran <[email protected]>
Committed: Tue Oct 9 10:06:58 2018 -0700

----------------------------------------------------------------------
 .../org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java    | 2 ++
 gobblin-runtime/src/test/resources/log4j.xml                       | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/fa1932b6/gobblin-runtime/src/test/java/org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java
----------------------------------------------------------------------
diff --git 
a/gobblin-runtime/src/test/java/org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java
 
b/gobblin-runtime/src/test/java/org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java
index 4a54259..dc83dca 100644
--- 
a/gobblin-runtime/src/test/java/org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java
+++ 
b/gobblin-runtime/src/test/java/org/apache/gobblin/runtime/mapreduce/MRTaskFactoryTest.java
@@ -48,6 +48,7 @@ import org.apache.hadoop.mapreduce.Reducer;
 import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
 import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
 import org.apache.log4j.AppenderSkeleton;
+import org.apache.log4j.Level;
 import org.apache.log4j.LogManager;
 import org.apache.log4j.Logger;
 import org.apache.log4j.spi.LoggingEvent;
@@ -77,6 +78,7 @@ public class MRTaskFactoryTest {
 
     TestAppender testAppender = new TestAppender();
     Logger logger = LogManager.getLogger(MRTask.class.getName());
+    logger.setLevel(Level.INFO);
     logger.addAppender(testAppender);
 
     EmbeddedGobblin embeddedGobblin = new EmbeddedGobblin("WordCounter")

http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/fa1932b6/gobblin-runtime/src/test/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/gobblin-runtime/src/test/resources/log4j.xml 
b/gobblin-runtime/src/test/resources/log4j.xml
index b13377c..cdb6dce 100644
--- a/gobblin-runtime/src/test/resources/log4j.xml
+++ b/gobblin-runtime/src/test/resources/log4j.xml
@@ -28,7 +28,7 @@
   </appender>
 
   <root>
-    <level value="info" />
+    <level value="warn" />
     <appender-ref ref="console" />
   </root>
 

Reply via email to