Skip to content

Commit

Permalink
logging added to message encoding area
Browse files Browse the repository at this point in the history
logging added to message encoding area
  • Loading branch information
Vijendra authored and Vijendra committed Jan 27, 2017
1 parent 2bb1a11 commit 35056d4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,13 @@ public Integer sendMessage(Message message)
byte[] msgData = new byte[1024];
int length;

logger.LogInfo("Started encoding of message - entering in while loop, method name is %s ", logger.getMethodName());
while (true)
{
try
{
length = message.encode(msgData, 0, msgData.length);
logger.LogInfo("Completed encoding of message, length is %s - breaking the while loop to come out, method name is %s ", length, logger.getMethodName());
break;
}
catch (BufferOverflowException e)
Expand Down

0 comments on commit 35056d4

Please sign in to comment.