This is an automated email from the ASF dual-hosted git repository.

chaow pushed a commit to branch add_debug_log_for_mlogParser
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a9c23dd45cc2f4d32a8edf304f22f4ebf0b53e4b
Author: chaow <[email protected]>
AuthorDate: Tue Jan 5 11:16:30 2021 +0800

    add debug log for IOTDB-1101
---
 .../test/java/org/apache/iotdb/db/tools/MLogParserTest.java  | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/server/src/test/java/org/apache/iotdb/db/tools/MLogParserTest.java 
b/server/src/test/java/org/apache/iotdb/db/tools/MLogParserTest.java
index 3fd8422..d6f06f0 100644
--- a/server/src/test/java/org/apache/iotdb/db/tools/MLogParserTest.java
+++ b/server/src/test/java/org/apache/iotdb/db/tools/MLogParserTest.java
@@ -34,6 +34,8 @@ import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.io.BufferedReader;
 import java.io.File;
@@ -46,6 +48,8 @@ import java.util.Map;
 
 public class MLogParserTest {
 
+  private static final Logger logger = 
LoggerFactory.getLogger(MLogParserTest.class);
+
   @Before
   public void setUp() throws Exception {
     EnvironmentUtils.envSetUp();
@@ -114,8 +118,10 @@ public class MLogParserTest {
     try (BufferedReader reader = new BufferedReader(new FileReader("target" + 
File.separator
       + "tmp"  + File.separator + "text.mlog"))) {
       int lineNum = 0;
-      while (reader.readLine() != null) {
+      String line;
+      while ((line = reader.readLine()) != null) {
         lineNum++;
+        logger.info(line);
       }
       Assert.assertEquals(108, lineNum);
     } catch (IOException e) {
@@ -139,8 +145,10 @@ public class MLogParserTest {
     try (BufferedReader reader = new BufferedReader(new FileReader("target" + 
File.separator
       + "tmp"  + File.separator + "text.snapshot"))) {
       int lineNum = 0;
-      while (reader.readLine() != null) {
+      String line;
+      while ((line = reader.readLine()) != null) {
         lineNum++;
+        logger.info(line);
       }
       Assert.assertEquals(113, lineNum);
     } catch (IOException e) {

Reply via email to