From: Maros Marsalek Date: Fri, 4 Jul 2014 08:04:15 +0000 (+0200) Subject: BUG-692 Add log to config persister test. X-Git-Tag: release/helium~542^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=6bbfa8e18c78a0355dc46870411d066293e653b9 BUG-692 Add log to config persister test. Change-Id: Id77d577b2d4ff30531ee5de7b401d21a84944511 Signed-off-by: Maros Marsalek --- diff --git a/opendaylight/netconf/config-persister-impl/src/test/java/org/opendaylight/controller/netconf/persist/impl/osgi/TestingExceptionHandler.java b/opendaylight/netconf/config-persister-impl/src/test/java/org/opendaylight/controller/netconf/persist/impl/osgi/TestingExceptionHandler.java index 6fb231d847..3f04010015 100644 --- a/opendaylight/netconf/config-persister-impl/src/test/java/org/opendaylight/controller/netconf/persist/impl/osgi/TestingExceptionHandler.java +++ b/opendaylight/netconf/config-persister-impl/src/test/java/org/opendaylight/controller/netconf/persist/impl/osgi/TestingExceptionHandler.java @@ -7,20 +7,25 @@ */ package org.opendaylight.controller.netconf.persist.impl.osgi; -import org.junit.matchers.JUnitMatchers; - import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; +import org.junit.matchers.JUnitMatchers; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + final class TestingExceptionHandler implements Thread.UncaughtExceptionHandler { + private static final Logger logger = LoggerFactory.getLogger(ConfigPersisterTest.class); + private Throwable t; @Override public void uncaughtException(Thread t, Throwable e) { + logger.debug("Uncaught exception in thread {}", t, e); this.t = e; }