summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 03:37:45 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 03:37:45 +0000
commit0aa0b94c9ee027741e11797682a5c9c3e7e94425 (patch)
treebc239430900d0c39a12fa30171d27fbb047cf0e3 /src
parente61d64d18584497197bb173c9c23a0359fc5b0c2 (diff)
- log shutdown
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c1
-rw-r--r--src/cadet/gnunet-service-cadet_dht.c1
-rw-r--r--src/cadet/gnunet-service-cadet_hello.c1
-rw-r--r--src/cadet/gnunet-service-cadet_local.c2
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c3
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.c1
6 files changed, 8 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 8c25a46b7..2eefceafd 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -2964,6 +2964,7 @@ shutdown_iterator (void *cls,
void
GCC_shutdown (void)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down connections\n");
GCC_check_connections ();
GNUNET_CONTAINER_multihashmap_iterate (connections,
&shutdown_iterator,
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c
index e4ae52da3..2b9fdb0a3 100644
--- a/src/cadet/gnunet-service-cadet_dht.c
+++ b/src/cadet/gnunet-service-cadet_dht.c
@@ -330,6 +330,7 @@ GCD_init (const struct GNUNET_CONFIGURATION_Handle *c)
void
GCD_shutdown (void)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down DHT\n");
GNUNET_CONTAINER_multihashmap32_iterate (get_requests, &stop_get, NULL);
GNUNET_CONTAINER_multihashmap32_destroy (get_requests);
if (dht_handle != NULL)
diff --git a/src/cadet/gnunet-service-cadet_hello.c b/src/cadet/gnunet-service-cadet_hello.c
index 19b45c9cd..187743e35 100644
--- a/src/cadet/gnunet-service-cadet_hello.c
+++ b/src/cadet/gnunet-service-cadet_hello.c
@@ -141,6 +141,7 @@ GCH_init (const struct GNUNET_CONFIGURATION_Handle *c)
void
GCH_shutdown ()
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down channels\n");
if (NULL != nc)
{
GNUNET_PEERINFO_notify_cancel (nc);
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index 9278ee25a..4066955d6 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -1160,6 +1160,8 @@ GML_shutdown (void)
{
struct CadetClient *c;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down local\n");
+
for (c = clients_head; NULL != clients_head; c = clients_head)
client_destroy (c);
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 9d80336bd..03c6f724d 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -775,7 +775,7 @@ shutdown_peer (void *cls,
{
struct CadetPeer *p = value;
struct CadetTunnel *t = p->tunnel;
-
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " shutting down %s\n", GCP_2s (p));
if (NULL != t)
GCT_destroy (t);
p->tunnel = NULL;
@@ -1797,6 +1797,7 @@ GCP_init (const struct GNUNET_CONFIGURATION_Handle *c)
void
GCP_shutdown (void)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down peers\n");
in_shutdown = GNUNET_YES;
GNUNET_CONTAINER_multipeermap_iterate (peers,
&shutdown_peer,
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c
index e3c48dc3e..dfeab989c 100644
--- a/src/cadet/gnunet-service-cadet_tunnel.c
+++ b/src/cadet/gnunet-service-cadet_tunnel.c
@@ -3267,6 +3267,7 @@ GCT_init (const struct GNUNET_CONFIGURATION_Handle *c,
void
GCT_shutdown (void)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Shutting down tunnels\n");
if (NULL != rekey_task)
{
GNUNET_SCHEDULER_cancel (rekey_task);