From 103598c4f01cf4ff5e90b85ef687f590ce7b3560 Mon Sep 17 00:00:00 2001 From: deepanshu Date: Wed, 10 Jan 2024 10:37:57 +0530 Subject: [PATCH] Add username in courier logs --- .../src/main/java/com/gojek/mqtt/connection/MqttConnection.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqtt-client/src/main/java/com/gojek/mqtt/connection/MqttConnection.kt b/mqtt-client/src/main/java/com/gojek/mqtt/connection/MqttConnection.kt index 8d040836..f436c559 100644 --- a/mqtt-client/src/main/java/com/gojek/mqtt/connection/MqttConnection.kt +++ b/mqtt-client/src/main/java/com/gojek/mqtt/connection/MqttConnection.kt @@ -129,8 +129,9 @@ internal class MqttConnection( } val clientId: String = connectOptions.clientId + val username: String = connectOptions.username serverUri = getServerUri() - logger.d(TAG, "clientId : $clientId serverUri $serverUri") + logger.d(TAG, "clientId : $clientId, username: $username, serverUri $serverUri") if (mqtt == null) { mqtt = getMqttAsyncClient(clientId, serverUri.toString()) mqtt!!.setCallback(getMqttCallback(messageReceiveListener))