Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Logging level in device.transport.IotHubTransport #1459

Merged
merged 2 commits into from
Jan 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public void addMessage(Message message, IotHubEventCallback callback, Object cal
for (Message singleMessage : ((BatchMessage) message).getNestedMessages())
{
this.addToWaitingQueue(new IotHubTransportPacket(singleMessage, callback, callbackContext, null, System.currentTimeMillis(), deviceId));
log.info("Messages were queued to be sent later ({})", singleMessage);
log.debug("Messages were queued to be sent later ({})", singleMessage);
}

return;
Expand All @@ -581,7 +581,7 @@ public void addMessage(Message message, IotHubEventCallback callback, Object cal
IotHubTransportPacket packet = new IotHubTransportPacket(message, callback, callbackContext, null, System.currentTimeMillis(), deviceId);
this.addToWaitingQueue(packet);

log.info("Message was queued to be sent later ({})", message);
log.debug("Message was queued to be sent later ({})", message);
}

public IotHubClientProtocol getProtocol()
Expand Down Expand Up @@ -1169,7 +1169,7 @@ private void openConnection() throws TransportException
*/
private void handleDisconnection(TransportException transportException)
{
log.info("Handling a disconnection event", transportException);
log.debug("Handling a disconnection event", transportException);

synchronized (this.inProgressMessagesLock)
{
Expand Down Expand Up @@ -1565,7 +1565,7 @@ private void updateStatus(IotHubConnectionStatus newConnectionStatus, IotHubConn
{
if (throwable == null)
{
log.info("Updating transport status to new status {} with reason {}", newConnectionStatus, reason);
log.debug("Updating transport status to new status {} with reason {}", newConnectionStatus, reason);
}
else
{
Expand Down