aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2017-02-24 22:19:16 +0100
committertg(x) <*@tg-x.net>2017-02-24 22:19:16 +0100
commite5c0f2652d84367e36662783f05c94efca16d1c2 (patch)
tree97e2152597ba77371019141a7b631e69085fcc7f /src/util
parentb7002d3f8016478d716236238bd43a7c06c924d2 (diff)
downloadgnunet-e5c0f2652d84367e36662783f05c94efca16d1c2.tar.gz
gnunet-e5c0f2652d84367e36662783f05c94efca16d1c2.zip
util: logging
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mq.c2
-rw-r--r--src/util/server.c10
-rw-r--r--src/util/service_new.c9
3 files changed, 15 insertions, 6 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index 71619bda4..79e2d0455 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -764,7 +764,7 @@ server_client_send_impl (struct GNUNET_MQ_Handle *mq,
764 GNUNET_assert (NULL != mq); 764 GNUNET_assert (NULL != mq);
765 765
766 LOG (GNUNET_ERROR_TYPE_DEBUG, 766 LOG (GNUNET_ERROR_TYPE_DEBUG,
767 "Transmitting message of type %u and size %u\n", 767 "Sending message of type %u and size %u\n",
768 ntohs (msg->type), ntohs (msg->size)); 768 ntohs (msg->type), ntohs (msg->size));
769 769
770 struct ServerClientSocketState *state = impl_state; 770 struct ServerClientSocketState *state = impl_state;
diff --git a/src/util/server.c b/src/util/server.c
index d7da5c6c0..83c30e328 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -945,9 +945,9 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
945 945
946 type = ntohs (message->type); 946 type = ntohs (message->type);
947 size = ntohs (message->size); 947 size = ntohs (message->size);
948 LOG (GNUNET_ERROR_TYPE_DEBUG, 948 LOG (GNUNET_ERROR_TYPE_INFO,
949 "Server schedules transmission of %u-byte message of type %u to client.\n", 949 "Received message of type %u and size %u from client\n",
950 size, type); 950 type, size);
951 found = GNUNET_NO; 951 found = GNUNET_NO;
952 for (pos = server->handlers; NULL != pos; pos = pos->next) 952 for (pos = server->handlers; NULL != pos; pos = pos->next)
953 { 953 {
@@ -1240,8 +1240,8 @@ client_message_tokenizer_callback (void *cls,
1240 int ret; 1240 int ret;
1241 1241
1242 LOG (GNUNET_ERROR_TYPE_DEBUG, 1242 LOG (GNUNET_ERROR_TYPE_DEBUG,
1243 "Tokenizer gives server message of type %u from client\n", 1243 "Tokenizer gives server message of type %u and size %u from client\n",
1244 ntohs (message->type)); 1244 ntohs (message->type), ntohs (message->size));
1245 sender->in_process_client_buffer = GNUNET_YES; 1245 sender->in_process_client_buffer = GNUNET_YES;
1246 ret = GNUNET_SERVER_inject (server, sender, message); 1246 ret = GNUNET_SERVER_inject (server, sender, message);
1247 sender->in_process_client_buffer = GNUNET_NO; 1247 sender->in_process_client_buffer = GNUNET_NO;
diff --git a/src/util/service_new.c b/src/util/service_new.c
index 987fb1c3b..8371f7703 100644
--- a/src/util/service_new.c
+++ b/src/util/service_new.c
@@ -1999,6 +1999,11 @@ service_mq_send (struct GNUNET_MQ_Handle *mq,
1999 if (NULL != client->drop_task) 1999 if (NULL != client->drop_task)
2000 return; /* we're going down right now, do not try to send */ 2000 return; /* we're going down right now, do not try to send */
2001 GNUNET_assert (NULL == client->send_task); 2001 GNUNET_assert (NULL == client->send_task);
2002
2003 LOG (GNUNET_ERROR_TYPE_INFO,
2004 "Sending message of type %u and size %u to client\n",
2005 ntohs (msg->type), ntohs (msg->size));
2006
2002 client->msg = msg; 2007 client->msg = msg;
2003 client->msg_pos = 0; 2008 client->msg_pos = 0;
2004 client->send_task 2009 client->send_task
@@ -2097,6 +2102,10 @@ service_client_mst_cb (void *cls,
2097{ 2102{
2098 struct GNUNET_SERVICE_Client *client = cls; 2103 struct GNUNET_SERVICE_Client *client = cls;
2099 2104
2105 LOG (GNUNET_ERROR_TYPE_INFO,
2106 "Received message of type %u and size %u from client\n",
2107 ntohs (message->type), ntohs (message->size));
2108
2100 GNUNET_assert (GNUNET_NO == client->needs_continue); 2109 GNUNET_assert (GNUNET_NO == client->needs_continue);
2101 client->needs_continue = GNUNET_YES; 2110 client->needs_continue = GNUNET_YES;
2102 client->warn_type = ntohs (message->type); 2111 client->warn_type = ntohs (message->type);