From 5d041450666fd1623ed1f25651a0a9c9b14525d8 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 4 Nov 2016 09:47:26 +0000 Subject: [PATCH] - simplify logging --- src/cadet/gnunet-service-cadet_connection.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index dc4239eab..662fd2644 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -682,7 +682,11 @@ conn_message_sent (void *cls, int forced; GCC_check_connections (); - LOG (GNUNET_ERROR_TYPE_DEBUG, "connection message_sent\n"); + LOG (GNUNET_ERROR_TYPE_INFO, + ">>> %s (%s %4u) on conn %s (%p) %s [%5u] in queue %s\n", + GC_m2s (type), GC_m2s (payload_type), pid, GCC_2s (c), c, + GC_f2s(fwd), size, + GNUNET_STRINGS_relative_time_to_string (wait, GNUNET_YES)); /* If c is NULL, nothing to update. */ if (NULL == c) @@ -3217,9 +3221,8 @@ GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, switch (type) { case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED: - LOG (GNUNET_ERROR_TYPE_DEBUG, " Q_N+ %p %u\n", fc, fc->queue_n); - LOG (GNUNET_ERROR_TYPE_DEBUG, "last pid sent %u\n", fc->last_pid_sent); - LOG (GNUNET_ERROR_TYPE_DEBUG, " ack recv %u\n", fc->last_ack_recv); + LOG (GNUNET_ERROR_TYPE_DEBUG, " Q_N+ %p %u, PIDsnt: %u, ACKrcv: %u\n", + fc, fc->queue_n, fc->last_pid_sent, fc->last_ack_recv); if (GNUNET_NO == force) { fc->queue_n++; -- 2.25.1