From: Christian Grothoff Date: Sun, 25 Dec 2011 14:47:19 +0000 (+0000) Subject: -LRN: neaten up, make debug log calls use DEBUG level X-Git-Tag: initial-import-from-subversion-38251~15530 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e608f0ec3f05008c6ebfcaf8735ebffea9d92eb;p=oweals%2Fgnunet.git -LRN: neaten up, make debug log calls use DEBUG level --- diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 5c749d717..6dcf7a3ef 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -539,7 +539,7 @@ change (struct NeighbourMapEntry *n, int state, int line) char *old = GNUNET_strdup (print_state (n->state)); char *new = GNUNET_strdup (print_state (state)); - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "State for neighbour `%s' %X changed from `%s' to `%s' in line %u\n", GNUNET_i2s (&n->id), n, old, new, line); GNUNET_free (old); @@ -1119,7 +1119,7 @@ send_outbound_quota (const struct GNUNET_PeerIdentity *target, struct QuotaSetMessage q_msg; #if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending outbound quota of %u Bps for peer `%s' to all clients\n", ntohl (quota.value__), GNUNET_i2s (target)); #endif @@ -1403,7 +1403,7 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer, /* checks successful and neighbour != NULL */ #if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ATS tells us to switch to address '%s' session %p for peer `%s' in state `%s'\n", GST_plugins_a2s (address), session, GNUNET_i2s (peer), print_state (n->state)); @@ -2202,7 +2202,7 @@ GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity GNUNET_HashCode hc; #if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received DISCONNECT message from peer `%s'\n", GNUNET_i2s (peer)); #endif @@ -2284,7 +2284,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message, size_t ret; #if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received CONNECT_ACK message from peer `%s'\n", GNUNET_i2s (peer)); #endif