Skip to content

Commit 35056d4

Browse files
VijendraVijendra
authored andcommitted
logging added to message encoding area
logging added to message encoding area
1 parent 2bb1a11 commit 35056d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/amqps/AmqpsIotHubConnection.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,13 @@ public Integer sendMessage(Message message)
337337
byte[] msgData = new byte[1024];
338338
int length;
339339

340+
logger.LogInfo("Started encoding of message - entering in while loop, method name is %s ", logger.getMethodName());
340341
while (true)
341342
{
342343
try
343344
{
344345
length = message.encode(msgData, 0, msgData.length);
346+
logger.LogInfo("Completed encoding of message, length is %s - breaking the while loop to come out, method name is %s ", length, logger.getMethodName());
345347
break;
346348
}
347349
catch (BufferOverflowException e)

0 commit comments

Comments
 (0)