Skip to content

Commit

Permalink
Reduce MQTT logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Oct 27, 2024
1 parent e8f6e29 commit 2c0b99e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/kernel/drivers/MqttDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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<int>(subscription.qos));
bool success = mqttClient.subscribe(subscription.topic, static_cast<int>(subscription.qos), [](const String& payload, const size_t size) {
// Global handler will take care of putting the received message on the incoming queue
Expand Down

0 comments on commit 2c0b99e

Please sign in to comment.