From e6cc58e4c06645faf7be59f5fe9d10f4582f3af9 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 23 Oct 2019 12:02:49 +0200 Subject: [PATCH] use warnings instead of errors in async mqtt thread --- lib/nodes/mqtt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodes/mqtt.cpp b/lib/nodes/mqtt.cpp index 1e69d7ab4..0d2c8b5c9 100644 --- a/lib/nodes/mqtt.cpp +++ b/lib/nodes/mqtt.cpp @@ -57,13 +57,13 @@ static void * mosquitto_loop_thread(void *ctx) ret = mosquitto_reconnect(m->client); if (ret != MOSQ_ERR_SUCCESS) - error("MQTT: reconnection to broker failed for node %s: %s", node_name(node), mosquitto_strerror(ret)); + warning("MQTT: reconnection to broker failed for node %s: %s", node_name(node), mosquitto_strerror(ret)); else warning("MQTT: successfully reconnected to broker for node %s: %s", node_name(node), mosquitto_strerror(ret)); ret = mosquitto_loop(m->client, -1, 1); if (ret != MOSQ_ERR_SUCCESS) - error("MQTT: persisting connection error for node %s: %s", node_name(node), mosquitto_strerror(ret)); + warning("MQTT: persisting connection error for node %s: %s", node_name(node), mosquitto_strerror(ret)); } } }