From 6bbfa8e18c78a0355dc46870411d066293e653b9 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Fri, 4 Jul 2014 10:04:15 +0200 Subject: [PATCH] BUG-692 Add log to config persister test. Change-Id: Id77d577b2d4ff30531ee5de7b401d21a84944511 Signed-off-by: Maros Marsalek --- .../persist/impl/osgi/TestingExceptionHandler.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; } -- 2.36.6