Skip to content

Commit

Permalink
Improve log to avoid too much error (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao authored Jul 27, 2023
1 parent 85ab30f commit 138efc3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ private void addIdleStateHandler() {
*/
public CompletableFuture<Void> send(MqttMessage mqttMessage) {
if (!channel.isActive()) {
log.error("send mqttMessage : {} failed due to channel is inactive.", mqttMessage);
log.warn("send mqttMessage : {} failed due to channel is inactive.",
mqttMessage.fixedHeader().messageType());
return FutureUtils.completableFuture(channel.newFailedFuture(channelInactiveException));
}
MqttAdapterMessage mqttAdapterMessage = new MqttAdapterMessage(clientId, mqttMessage, isFromProxy());
Expand Down

0 comments on commit 138efc3

Please sign in to comment.