1
0
Fork 0
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:
Steffen Vogel 2018-05-26 02:33:16 +02:00
parent 851bfa78b4
commit 26c567e8cb
2 changed files with 2 additions and 4 deletions

View file

@ -137,8 +137,6 @@ int mapping_parse_str(struct mapping_entry *me, const char *str, struct list *no
first_str = strtok(NULL, "-]");
if (first_str) {
info("Mapping: %s", first_str);
if (me->node)
first = list_lookup_index(&me->node->in.signals, first_str);

View file

@ -58,7 +58,7 @@ static void mqtt_connect_cb(struct mosquitto *mosq, void *userdata, int result)
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);
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 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)