From 38559b0298b07ee66d9840940d88ebdcce4880ed Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 15 Dec 2014 07:17:57 +0000 Subject: [PATCH] - more debug info --- src/cadet/gnunet-service-cadet_connection.c | 4 +++- src/cadet/gnunet-service-cadet_tunnel.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 7bc0ba8da..cdb39e383 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -1414,6 +1414,8 @@ connection_reset_timeout (struct CadetConnection *c, int fwd) if (GNUNET_SCHEDULER_NO_TASK != *ti) GNUNET_SCHEDULER_cancel (*ti); delay = GNUNET_TIME_relative_multiply (refresh_connection_time, 4); + LOG (GNUNET_ERROR_TYPE_DEBUG, " timing out in %s\n", + GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_NO)); f = fwd ? &connection_fwd_timeout : &connection_bck_timeout; *ti = GNUNET_SCHEDULER_add_delayed (delay, f, c); } @@ -2524,7 +2526,7 @@ GCC_new (const struct GNUNET_CADET_Hash *cid, GCC_destroy (c); return NULL; } - + LOG (GNUNET_ERROR_TYPE_INFO, "New connection %s\n", GCC_2s (c)); return c; } diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index cab5809a3..98452ba6f 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -3084,6 +3084,7 @@ GCT_send_connection_acks (struct CadetTunnel *t) if (0 != to_allow) { GNUNET_break (0); + GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); LOG (GNUNET_ERROR_TYPE_WARNING, " reminding to_allow: %u\n", to_allow); } } -- 2.25.1