diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-02 09:12:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-02 09:12:25 +0000 |
commit | 0f550b188c85b709c37383dd75f0243b6222636f (patch) | |
tree | 2b6d118fe4a88edc0484de025c3eac88dc91c2a8 /src | |
parent | 004188973380f93d82851ade0c572cb324162c84 (diff) | |
download | gnunet-0f550b188c85b709c37383dd75f0243b6222636f.tar.gz gnunet-0f550b188c85b709c37383dd75f0243b6222636f.zip |
-improve logging to help diagnose #3593
Diffstat (limited to 'src')
-rw-r--r-- | src/datastore/datastore_api.c | 2 | ||||
-rw-r--r-- | src/util/client.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c index e22093186..8c7b4b0f2 100644 --- a/src/datastore/datastore_api.c +++ b/src/datastore/datastore_api.c | |||
@@ -642,7 +642,7 @@ transmit_request (void *cls, | |||
642 | GNUNET_TIME_absolute_get_remaining (qe->timeout)); | 642 | GNUNET_TIME_absolute_get_remaining (qe->timeout)); |
643 | #if INSANE_STATISTICS | 643 | #if INSANE_STATISTICS |
644 | GNUNET_STATISTICS_update (h->stats, | 644 | GNUNET_STATISTICS_update (h->stats, |
645 | gettext_noop ("# bytes sent to datastore"), 1, | 645 | gettext_noop ("# bytes sent to datastore"), msize, |
646 | GNUNET_NO); | 646 | GNUNET_NO); |
647 | #endif | 647 | #endif |
648 | return msize; | 648 | return msize; |
diff --git a/src/util/client.c b/src/util/client.c index babb6a516..c107fed74 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -613,6 +613,9 @@ GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *client, | |||
613 | if (NULL == client->connection) | 613 | if (NULL == client->connection) |
614 | { | 614 | { |
615 | /* already disconnected, fail instantly! */ | 615 | /* already disconnected, fail instantly! */ |
616 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
617 | "Client API violation for service `%s'\n", | ||
618 | client->service_name); | ||
616 | GNUNET_break (0); /* this should not happen in well-written code! */ | 619 | GNUNET_break (0); /* this should not happen in well-written code! */ |
617 | if (NULL != handler) | 620 | if (NULL != handler) |
618 | handler (handler_cls, NULL); | 621 | handler (handler_cls, NULL); |