From a84ba88d817c79fb938eb30ff9280d8efaef1990 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 3 Sep 2015 18:04:03 +0000 Subject: [PATCH] - log --- src/cadet/gnunet-service-cadet_local.c | 4 ++-- src/cadet/gnunet-service-cadet_peer.c | 6 ++++-- src/cadet/gnunet-service-cadet_tunnel.c | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c index 6c9a1a64e..e6012d64a 100644 --- a/src/cadet/gnunet-service-cadet_local.c +++ b/src/cadet/gnunet-service-cadet_local.c @@ -948,7 +948,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client, } msg = (struct GNUNET_CADET_LocalInfo *) message; - LOG (GNUNET_ERROR_TYPE_INFO, + LOG (GNUNET_ERROR_TYPE_DEBUG, "Received tunnel info request from client %u for tunnel %s\n", c->id, GNUNET_i2s_full(&msg->peer)); @@ -998,7 +998,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client, &resp->header, GNUNET_NO); GNUNET_free (resp); - LOG (GNUNET_ERROR_TYPE_INFO, + LOG (GNUNET_ERROR_TYPE_DEBUG, "Show tunnel request from client %u completed. %u conn, %u ch\n", c->id, c_n, ch_n); GNUNET_SERVER_receive_done (client, GNUNET_OK); diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index a90ff5cb2..9c072e54b 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -1206,8 +1206,10 @@ queue_send (void *cls, size_t size, void *buf) core_wait_time = GNUNET_TIME_absolute_get_duration (peer->tmt_time); if (core_wait_time.rel_value_us >= 1000000) { - LOG (GNUNET_ERROR_TYPE_ERROR, " core wait time %s > 1 second\n", - GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); + LOG (GNUNET_ERROR_TYPE_ERROR, + " core wait time %s > 1 second for %u bytes\n", + GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO), + queue->size); } else { diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 6c17954a3..6538bdbb7 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1958,8 +1958,8 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message, if (NULL == cont) { - GNUNET_break (NULL == GCC_send_prebuilt_message (msg, type, - mid, c, fwd, force, NULL, NULL)); + GNUNET_break (NULL == GCC_send_prebuilt_message (msg, type, mid, c, fwd, + force, NULL, NULL)); return NULL; } if (NULL == existing_q) -- 2.25.1