aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-11-04 09:47:26 +0000
committerBart Polot <bart@net.in.tum.de>2016-11-04 09:47:26 +0000
commit5d041450666fd1623ed1f25651a0a9c9b14525d8 (patch)
treedf3fb14bd21620808e7f656a7bd1d1bb3415b67a
parent3341cc2ec22d6c67c6f6a2e07f08875230fb4724 (diff)
downloadgnunet-5d041450666fd1623ed1f25651a0a9c9b14525d8.tar.gz
gnunet-5d041450666fd1623ed1f25651a0a9c9b14525d8.zip
- simplify logging
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c11
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 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,
682 int forced; 682 int forced;
683 683
684 GCC_check_connections (); 684 GCC_check_connections ();
685 LOG (GNUNET_ERROR_TYPE_DEBUG, "connection message_sent\n"); 685 LOG (GNUNET_ERROR_TYPE_INFO,
686 ">>> %s (%s %4u) on conn %s (%p) %s [%5u] in queue %s\n",
687 GC_m2s (type), GC_m2s (payload_type), pid, GCC_2s (c), c,
688 GC_f2s(fwd), size,
689 GNUNET_STRINGS_relative_time_to_string (wait, GNUNET_YES));
686 690
687 /* If c is NULL, nothing to update. */ 691 /* If c is NULL, nothing to update. */
688 if (NULL == c) 692 if (NULL == c)
@@ -3217,9 +3221,8 @@ GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
3217 switch (type) 3221 switch (type)
3218 { 3222 {
3219 case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED: 3223 case GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED:
3220 LOG (GNUNET_ERROR_TYPE_DEBUG, " Q_N+ %p %u\n", fc, fc->queue_n); 3224 LOG (GNUNET_ERROR_TYPE_DEBUG, " Q_N+ %p %u, PIDsnt: %u, ACKrcv: %u\n",
3221 LOG (GNUNET_ERROR_TYPE_DEBUG, "last pid sent %u\n", fc->last_pid_sent); 3225 fc, fc->queue_n, fc->last_pid_sent, fc->last_ack_recv);
3222 LOG (GNUNET_ERROR_TYPE_DEBUG, " ack recv %u\n", fc->last_ack_recv);
3223 if (GNUNET_NO == force) 3226 if (GNUNET_NO == force)
3224 { 3227 {
3225 fc->queue_n++; 3228 fc->queue_n++;