diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:26 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:26 +0000 |
commit | 5d041450666fd1623ed1f25651a0a9c9b14525d8 (patch) | |
tree | df3fb14bd21620808e7f656a7bd1d1bb3415b67a /src/cadet/gnunet-service-cadet_connection.c | |
parent | 3341cc2ec22d6c67c6f6a2e07f08875230fb4724 (diff) |
- simplify logging
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index dc4239eaba..662fd2644b 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++; |