Merge pull request #10069 from yantarou/jan_fix_MqttTransportHandler_exceptionCaught_debug_message

Fix debug log message in MqttTransportHandler:exceptionCaught()
This commit is contained in:
Andrew Shvayka 2024-09-09 18:11:54 +03:00 committed by GitHub
commit 022ed2dee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1063,6 +1063,7 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement
log.debug("[{}][{}][{}] IOException: {}", sessionId,
Optional.ofNullable(this.deviceSessionCtx.getDeviceInfo()).map(TransportDeviceInfo::getDeviceId).orElse(null),
Optional.ofNullable(this.deviceSessionCtx.getDeviceInfo()).map(TransportDeviceInfo::getDeviceName).orElse(""),
cause.getMessage(),
cause);
} else if (log.isInfoEnabled()) {
log.info("[{}][{}][{}] IOException: {}", sessionId,