From: ananthip Date: Wed, 29 Jun 2016 14:10:39 +0000 (-0400) Subject: Bug 5938 - Updated the logging. X-Git-Tag: release/boron~59^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=5718005a0a0cffcdf09a08099d306757c286b339;p=ovsdb.git Bug 5938 - Updated the logging. Change-Id: I933a9f75ce87a4769c22f194eb06d39e1f669477 Signed-off-by: ananthip --- diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolRemovedCommand.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolRemovedCommand.java index 8fa05814b..0739d500f 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolRemovedCommand.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolRemovedCommand.java @@ -69,6 +69,8 @@ public class ProtocolRemovedCommand implements TransactCommand { try { transaction.add(op.mutate(bridge).addMutation(bridge.getProtocolsColumn().getSchema(), Mutator.DELETE,bridge.getProtocolsColumn().getData())); + LOG.info("Removed ProtocolEntry : {} for OVSDB Bridge : {} ", + protocolString, bridge.getName()); } catch (SchemaVersionMismatchException e) { schemaMismatchLog("protocols", "Bridge", e); } diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolUpdateCommand.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolUpdateCommand.java index ec80b7307..2390de159 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolUpdateCommand.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/ProtocolUpdateCommand.java @@ -81,6 +81,8 @@ public class ProtocolUpdateCommand implements TransactCommand { Mutator.INSERT,bridge.getProtocolsColumn().getData()) .where(bridge.getNameColumn().getSchema().opEqual(bridge.getNameColumn().getData())) .build()); + LOG.info("Updated ProtocolEntry : {} for OVSDB Bridge : {} ", + protocolString, bridge.getName()); } catch (SchemaVersionMismatchException e) { schemaMismatchLog("protocols", "Bridge", e); } diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosRemovedCommand.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosRemovedCommand.java index d7f1bddb5..3246ea499 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosRemovedCommand.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosRemovedCommand.java @@ -85,6 +85,8 @@ public class QosRemovedCommand implements TransactCommand { transaction.add(op.delete(qos.getSchema()) .where(qos.getUuidColumn().getSchema().opEqual(new UUID(qosUuid.getValue()))) .build()); + LOG.info("Removed QoS Uuid : {} for node : {} ", + origQosEntry.getQosId(), ovsdbNodeIid); } else { LOG.warn("Unable to delete QoS{} for node {} because it was not found in the " + "operational store, and thus we cannot retrieve its UUID", diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java index 294e4910d..969bf4443 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java @@ -126,6 +126,8 @@ public class QosUpdateCommand implements TransactCommand { UUID namedUuid = new UUID(SouthboundConstants.QOS_NAMED_UUID_PREFIX + TransactUtils.bytesToHexString(qosEntry.getQosId().getValue().getBytes())); transaction.add(op.insert(qos).withId(namedUuid.toString())).build(); + LOG.info("Added QoS Uuid: {} for node : {} ", + namedUuid, ovsdbNode); } else { UUID uuid = new UUID(operQosUuid.getValue()); Qos extraQos = TyperUtils.getTypedRowWrapper( @@ -133,6 +135,8 @@ public class QosUpdateCommand implements TransactCommand { extraQos.getUuidColumn().setData(uuid); transaction.add(op.update(qos) .where(extraQos.getUuidColumn().getSchema().opEqual(uuid)).build()); + LOG.info("Updated QoS Uuid : {} for node : {} ", + operQosUuid, ovsdbNode); } transaction.build(); }