commit | cf4004e278a816e28b24537550a076fde138ccd1 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Tue Sep 15 10:29:25 2020 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Tue Sep 15 10:29:25 2020 -0700 |
tree | 25e9e8e8b5b775649e9fe496d005e87978e0c57e | |
parent | a94531f19d0df0d7900d2db0eac8e583717092ba [diff] |
Adding MacAddress and VLAN to "Received DHCP Packet" logs Change-Id: I8dea5900d043c8f843ffafe01abc3b37637e2272
diff --git a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java index 1fc408d..4514cdc 100755 --- a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java +++ b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
@@ -722,8 +722,8 @@ SubscriberAndDeviceInformation entry = null; - log.info("Received DHCP Packet of type {} from {}", - incomingPacketType, context.inPacket().receivedFrom()); + log.info("Received DHCP Packet of type {} from {} with MacAddress {} and vlan {}", + incomingPacketType, context.inPacket().receivedFrom(), packet.getSourceMAC(), packet.getVlanID()); switch (incomingPacketType) { case DHCPDISCOVER: