From fe41521fe55dedc011680e8ca8b98afc8d1ac0df Mon Sep 17 00:00:00 2001 From: ravinperera00 Date: Mon, 16 Sep 2024 23:34:35 +0530 Subject: [PATCH] Add print statements to debug tests --- .../java/org/ballerinalang/test/logging/LogAPITestCase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/logging/LogAPITestCase.java b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/logging/LogAPITestCase.java index f6950ffd3f1e..0911520e4aac 100644 --- a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/logging/LogAPITestCase.java +++ b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/logging/LogAPITestCase.java @@ -58,6 +58,7 @@ public void testBasicLogFunctionality() throws BallerinaTestException { String output = bMainInstance.runMainAndReadStdOut("run", new String[]{"mainmod"}, new HashMap<>(), projectDirPath, true); String[] logLines = output.split("\n"); + printLogLines(logLines); assertEquals(logLines.length, 13); validateLogLevel(logLines[9], "INFO", "[logorg/foo]", "Logging from inside `foo` module"); @@ -140,6 +141,7 @@ public void testDebugLevel() throws BallerinaTestException { String output = bMainInstance.runMainAndReadStdOut("run", args, new HashMap<>(), testFileLocation, true); String[] logLines = output.split("\n"); + printLogLines(logLines); assertEquals(logLines.length, 9); console.println(logLines[4]); @@ -165,6 +167,7 @@ public void testTraceLevel() throws BallerinaTestException { String output = bMainInstance.runMainAndReadStdOut("run", args, new HashMap<>(), testFileLocation, true); String[] logLines = output.split("\n"); + printLogLines(logLines); assertEquals(logLines.length, 10); console.println(logLines[4]);