Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Jan 5, 2018
1 parent 035e8b2 commit 61fffa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhysicalInterfaces/IBidCoSInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void IBidCoSInterface::processReceivedPacket(std::shared_ptr<BidCoSPacket> packe
std::shared_ptr<BidCoSPacket> aFrame = _aesHandshake->getAFrame(packet, mFrame, peerIterator->second.keyIndex, wakeUp);
if(!aFrame)
{
if(mFrame) _out.printError("Error: AES handshake failed for packet: " + mFrame->hexString());
if(mFrame) _out.printError("Error: AES handshake failed for packet: " + mFrame->hexString() + ". Sender address: " + BaseLib::HelperFunctions::getHexString(mFrame->senderAddress(), 6));
else _out.printError("Error: No m-Frame found for r-Frame.");
return;
}
Expand All @@ -385,7 +385,7 @@ void IBidCoSInterface::processReceivedPacket(std::shared_ptr<BidCoSPacket> packe
std::shared_ptr<BidCoSPacket> rFrame = _aesHandshake->getRFrame(packet, mFrame, peerIterator->second.keyIndex);
if(!rFrame)
{
if(mFrame) _out.printError("Error: AES handshake failed for packet: " + mFrame->hexString());
if(mFrame) _out.printError("Error: AES handshake failed for packet: " + mFrame->hexString() + ". Sender address: " + BaseLib::HelperFunctions::getHexString(mFrame->senderAddress(), 6));
else _out.printError("Error: No m-Frame found for c-Frame.");
return;
}
Expand Down

0 comments on commit 61fffa0

Please sign in to comment.