mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
improve logging
This commit is contained in:
parent
851bfa78b4
commit
26c567e8cb
2 changed files with 2 additions and 4 deletions
|
@ -137,8 +137,6 @@ int mapping_parse_str(struct mapping_entry *me, const char *str, struct list *no
|
||||||
|
|
||||||
first_str = strtok(NULL, "-]");
|
first_str = strtok(NULL, "-]");
|
||||||
if (first_str) {
|
if (first_str) {
|
||||||
info("Mapping: %s", first_str);
|
|
||||||
|
|
||||||
if (me->node)
|
if (me->node)
|
||||||
first = list_lookup_index(&me->node->in.signals, first_str);
|
first = list_lookup_index(&me->node->in.signals, first_str);
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ static void mqtt_connect_cb(struct mosquitto *mosq, void *userdata, int result)
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
debug(5, "MQTT: Node %s connected to broker %s", node_name(n), m->host);
|
info("MQTT: Node %s connected to broker %s", node_name(n), m->host);
|
||||||
|
|
||||||
ret = mosquitto_subscribe(m->client, NULL, m->subscribe, m->qos);
|
ret = mosquitto_subscribe(m->client, NULL, m->subscribe, m->qos);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -70,7 +70,7 @@ static void mqtt_disconnect_cb(struct mosquitto *mosq, void *userdata, int resul
|
||||||
struct node *n = (struct node *) userdata;
|
struct node *n = (struct node *) userdata;
|
||||||
struct mqtt *m = (struct mqtt *) n->_vd;
|
struct mqtt *m = (struct mqtt *) n->_vd;
|
||||||
|
|
||||||
debug(5, "MQTT: Node %s disconnected from broker %s", node_name(n), m->host);
|
info("MQTT: Node %s disconnected from broker %s", node_name(n), m->host);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mqtt_message_cb(struct mosquitto *mosq, void *userdata, const struct mosquitto_message *msg)
|
static void mqtt_message_cb(struct mosquitto *mosq, void *userdata, const struct mosquitto_message *msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue