From 5188ecba00affae5029485e91db3151e0fbfa7a7 Mon Sep 17 00:00:00 2001 From: sfja Date: Thu, 9 Apr 2026 15:54:43 +0200 Subject: [PATCH] log hostname and port --- backend/src/mqtt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/mqtt.cpp b/backend/src/mqtt.cpp index 55188fb..b125144 100644 --- a/backend/src/mqtt.cpp +++ b/backend/src/mqtt.cpp @@ -144,6 +144,7 @@ Client::Client(const std::string& hostname, mosquitto_subscribe_callback_set(inst, callbacks::subscribe); mosquitto_unsubscribe_callback_set(inst, callbacks::unsubscribe); + std::println("[MQTT] Connecting to {}:{}", hostname, port); if (auto status = mosquitto_connect(inst, hostname.c_str(), port, 5); status != MOSQ_ERR_SUCCESS) { if (status == MOSQ_ERR_ERRNO) {