Fix logging placeholders 06/80906/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 15 Mar 2019 18:34:00 +0000 (19:34 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 15 Mar 2019 20:48:52 +0000 (20:48 +0000)
Upgraded SpotBugs is finding these, fix them up.

Change-Id: I6209c661ccdf17d886d8c776d96fe6b6a32abc1b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/ShardedDOMWriteTransactionAdapter.java
dom/mdsal-dom-schema-service-osgi/src/main/java/org/opendaylight/mdsal/dom/schema/service/osgi/OsgiBundleScanningSchemaService.java

index b3222e0c91d3e48147c5f124e24d6a2e2352bab7..073529bf15f530f373316c02f9959fa8fa9751e6 100644 (file)
@@ -55,7 +55,7 @@ public class ShardedDOMWriteTransactionAdapter implements DOMDataTreeWriteTransa
 
     @Override
     public boolean cancel() {
-        LOG.debug("{}: Cancelling transaction");
+        LOG.debug("{}: Cancelling transaction", txIdentifier);
         if (finished) {
             return false;
         }
@@ -160,7 +160,7 @@ public class ShardedDOMWriteTransactionAdapter implements DOMDataTreeWriteTransa
         transactionMap.put(LogicalDatastoreType.OPERATIONAL,
                 producerMap.get(LogicalDatastoreType.OPERATIONAL).createTransaction(true));
 
-        LOG.debug("{}: Creating DOMDataTreeWriteCursors delegates");
+        LOG.debug("{}: Creating DOMDataTreeWriteCursors delegates", txIdentifier);
         cursorMap.put(LogicalDatastoreType.CONFIGURATION,
                 transactionMap.get(LogicalDatastoreType.CONFIGURATION)
                         .createCursor(new DOMDataTreeIdentifier(LogicalDatastoreType.CONFIGURATION, path)));
index 7a9f2f9196e3f5a7284eec6fbaefdd569429e962..88fe6c4a9b599a90b25e411f6aa8f79e98baf094 100644 (file)
@@ -141,7 +141,7 @@ public final class OsgiBundleScanningSchemaService extends ScanningSchemaService
                     urls.add(u);
                     LOG.debug("Registered {}", u);
                 } catch (final Exception e) {
-                    LOG.warn("Failed to register {}, ignoring it", e);
+                    LOG.warn("Failed to register {}, ignoring it", u, e);
                 }
             }