diff --git a/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/amqps/AmqpsIotHubConnection.java b/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/amqps/AmqpsIotHubConnection.java index 329afbba06..b557215e22 100644 --- a/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/amqps/AmqpsIotHubConnection.java +++ b/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/transport/amqps/AmqpsIotHubConnection.java @@ -766,7 +766,7 @@ private void startReconnect() if (currentReconnectionAttempt == Integer.MAX_VALUE) currentReconnectionAttempt = 0; - System.out.println("Lost connection to the server. Reconnection attempt " + currentReconnectionAttempt++ + "..."); + currentReconnectionAttempt++; logger.LogInfo("Lost connection to the server. Reconnection attempt %s, method name is %s ", currentReconnectionAttempt, logger.getMethodName()); try {