Clean up logging
[ovsdb.git] / integrationtest / src / test / java / org / opendaylight / ovsdb / integrationtest / library / OvsdbLibraryIT.java
index 3df31d0f5a3ef2095d8002a591ce65759f7a72b6..a134e812ebd7ba0a082c5a6e9fcc5bb3fb949b4b 100644 (file)
@@ -55,7 +55,7 @@ import com.google.common.util.concurrent.ListenableFuture;
 
 @RunWith(PaxExam.class)
 public class OvsdbLibraryIT extends OvsdbIntegrationTestBase {
-    private Logger log = LoggerFactory.getLogger(OvsdbLibraryIT.class);
+    private static final Logger LOG = LoggerFactory.getLogger(OvsdbLibraryIT.class);
     @Inject
     private BundleContext bc;
     private OvsdbClient client = null;
@@ -89,13 +89,12 @@ public class OvsdbLibraryIT extends OvsdbIntegrationTestBase {
         for (Bundle element : b) {
             int state = element.getState();
             if (state != Bundle.ACTIVE && state != Bundle.RESOLVED) {
-                log.info("Bundle:" + element.getSymbolicName() + " state:"
-                          + stateToString(state));
+                LOG.info("Bundle: {} state: {}", element.getSymbolicName(), stateToString(state));
                 debugit = true;
             }
         }
         if (debugit) {
-            log.debug("Do some debugging because some bundle is unresolved");
+            LOG.debug("Do some debugging because some bundle is unresolved");
             Thread.sleep(600000);
         }