From 2c0b99e4be49b75e60ab651fbe511963492c4916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3r=C3=A1nt=20Pint=C3=A9r?= Date: Sun, 27 Oct 2024 20:49:12 +0100 Subject: [PATCH] Reduce MQTT logging level --- main/kernel/drivers/MqttDriver.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/kernel/drivers/MqttDriver.hpp b/main/kernel/drivers/MqttDriver.hpp index 59560a15..4414fbd1 100644 --- a/main/kernel/drivers/MqttDriver.hpp +++ b/main/kernel/drivers/MqttDriver.hpp @@ -400,8 +400,8 @@ class MqttDriver { } else { Log.debug("MQTT: server: %s:%d, client ID is '%s', using TLS", hostname.c_str(), mqttServer.port, clientId.c_str()); - Log.debug("Server cert: %s", serverCert.c_str()); - Log.debug("Client cert: %s", clientCert.c_str()); + Log.trace("Server cert: %s", serverCert.c_str()); + Log.trace("Client cert: %s", clientCert.c_str()); wifiClientSecure.setCACert(serverCert.c_str()); wifiClientSecure.setCertificate(clientCert.c_str()); wifiClientSecure.setPrivateKey(clientKey.c_str()); @@ -490,7 +490,7 @@ class MqttDriver { // Actually subscribe to the given topic bool registerSubscriptionWithMqtt(const Subscription& subscription) { - Log.debug("MQTT: Subscribing to topic '%s' (qos = %d)", + Log.trace("MQTT: Subscribing to topic '%s' (qos = %d)", subscription.topic.c_str(), static_cast(subscription.qos)); bool success = mqttClient.subscribe(subscription.topic, static_cast(subscription.qos), [](const String& payload, const size_t size) { // Global handler will take care of putting the received message on the incoming queue