X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnorthboundtest%2Funit_test_suite%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnorthboundtest%2Funittestsuite%2Finternal%2FAPI3UnitTest.java;h=f2cbb97bfa85cf491d7f8de6dd3031a571c8d47a;hp=b9ce9ba5a89e34329ef3fe9089fd2272c722b5d2;hb=d192c699590d441eb96a697b9e8ab7a028f18860;hpb=38379f996f946943172a1c62a49c86bff1c444eb diff --git a/opendaylight/northboundtest/unit_test_suite/src/main/java/org/opendaylight/controller/northboundtest/unittestsuite/internal/API3UnitTest.java b/opendaylight/northboundtest/unit_test_suite/src/main/java/org/opendaylight/controller/northboundtest/unittestsuite/internal/API3UnitTest.java index b9ce9ba5a8..f2cbb97bfa 100644 --- a/opendaylight/northboundtest/unit_test_suite/src/main/java/org/opendaylight/controller/northboundtest/unittestsuite/internal/API3UnitTest.java +++ b/opendaylight/northboundtest/unit_test_suite/src/main/java/org/opendaylight/controller/northboundtest/unittestsuite/internal/API3UnitTest.java @@ -18,6 +18,8 @@ import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; import org.osgi.framework.BundleContext; import org.osgi.framework.FrameworkUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * This java class provides the osgi console with the commands for running the unit test scripts for the API3 @@ -26,6 +28,9 @@ import org.osgi.framework.FrameworkUtil; * */ public class API3UnitTest implements CommandProvider { + private static Logger log = LoggerFactory + .getLogger(API3UnitTest.class); + private static final String python = "/usr/bin/python"; /** @@ -140,7 +145,7 @@ public class API3UnitTest implements CommandProvider { printStream(process.getErrorStream()); } catch (Exception e) { System.out.println("Exception!"); - e.printStackTrace(); + logger.error("",e); } } @@ -192,7 +197,7 @@ public class API3UnitTest implements CommandProvider { printStream(process.getErrorStream()); } catch (Exception e) { System.out.println("Exception!"); - e.printStackTrace(); + logger.error("",e); } }