Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Apr 11, 2023
1 parent a52b002 commit bf9a3d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ class MqttAndroidClient @JvmOverloads constructor(
}

override fun onServiceDisconnected(name: ComponentName) {
Timber.d("Service disconnected")
mqttService = null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class MqttService : Service(), MqttTraceHandler {
* @return the MqttConnection identified by this handle
*/
private fun getConnection(clientHandle: String): MqttConnection {
return connections[clientHandle] ?: throw IllegalArgumentException("Invalid ClientHandle")
return connections[clientHandle] ?: throw IllegalArgumentException("Invalid ClientHandle $clientHandle")
}

/**
Expand Down

0 comments on commit bf9a3d5

Please sign in to comment.