mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
use warnings instead of errors in async mqtt thread
This commit is contained in:
parent
fce14a244f
commit
e6cc58e4c0
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue