From: Niklas Hofmann Date: Sat, 9 Aug 2014 12:05:25 +0000 (+0200) Subject: log level adjustments X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=c36749890a204b8c852528e89020aac6002e0a1d;p=meshlink log level adjustments --- diff --git a/src/net_packet.c b/src/net_packet.c index fced36b8..467156aa 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -560,11 +560,11 @@ void send_packet(meshlink_handle_t *mesh, node_t *n, vpn_packet_t *packet) { return; } - logger(mesh, MESHLINK_ERROR, "Sending packet of %d bytes to %s (%s)", + logger(mesh, MESHLINK_DEBUG, "Sending packet of %d bytes to %s (%s)", packet->len, n->name, n->hostname); if(!n->status.reachable) { - logger(mesh, MESHLINK_INFO, "Node %s (%s) is not reachable", + logger(mesh, MESHLINK_WARNING, "Node %s (%s) is not reachable", n->name, n->hostname); return; } diff --git a/src/route.c b/src/route.c index 751ebc33..f451d8e3 100644 --- a/src/route.c +++ b/src/route.c @@ -42,7 +42,7 @@ void route(meshlink_handle_t *mesh, node_t *source, vpn_packet_t *packet) { node_t *via = NULL; meshlink_packethdr_t *hdr = (meshlink_packethdr_t *) packet->data; owner = lookup_node(mesh, (char *)hdr->destination); - logger(mesh, MESHLINK_WARNING, "Routing packet from: %s . To: %s \n", hdr->source, hdr->destination); + logger(mesh, MESHLINK_DEBUG, "Routing packet from \"%s\" to \"%s\"\n", hdr->source, hdr->destination); //Check Lenght if(!checklength(source, packet, (sizeof(meshlink_packethdr_t)))) @@ -56,7 +56,7 @@ void route(meshlink_handle_t *mesh, node_t *source, vpn_packet_t *packet) { } if(owner == mesh->self) { - logger(mesh, MESHLINK_WARNING, "I received a packet for me with payload: %s \n", packet->data + sizeof *hdr); + logger(mesh, MESHLINK_DEBUG, "I received a packet for me with payload: %s \n", packet->data + sizeof *hdr); if(mesh->receive_cb) mesh->receive_cb(mesh, (meshlink_node_t *)source, packet->data + sizeof *hdr, packet->len - sizeof *hdr); return;