diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 08:58:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-12 08:58:07 +0000 |
commit | 817bb023f88341e7ccfa986182878d7e75300e8f (patch) | |
tree | 87b284fe98e323c16503cf6cb145e9c66feeae7e /src/transport/gnunet-service-transport_validation.c | |
parent | 89963b943638799819321934761a31aaa442f384 (diff) | |
download | gnunet-817bb023f88341e7ccfa986182878d7e75300e8f.tar.gz gnunet-817bb023f88341e7ccfa986182878d7e75300e8f.zip |
disabling error level message, adding stats instead
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 98a73b3da..b2fd5afa7 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -985,13 +985,23 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
985 | GNUNET_free (plugin_name); | 985 | GNUNET_free (plugin_name); |
986 | if (GNUNET_OK != papi->check_address (papi->cls, addrend, alen)) | 986 | if (GNUNET_OK != papi->check_address (papi->cls, addrend, alen)) |
987 | { | 987 | { |
988 | GNUNET_STATISTICS_update (GST_stats, | ||
989 | gettext_noop | ||
990 | ("# failed address checks during validation"), 1, | ||
991 | GNUNET_NO); | ||
988 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is not one of my addresses, not confirming PING\n", | 992 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is not one of my addresses, not confirming PING\n", |
989 | GST_plugins_a2s (&address)); | 993 | GST_plugins_a2s (&address)); |
990 | return; | 994 | return; |
991 | } | 995 | } |
992 | else | 996 | else |
993 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is one of my addresses, confirming PING\n", | 997 | { |
994 | GST_plugins_a2s (&address)); /* DEBUGGING*/ | 998 | GNUNET_STATISTICS_update (GST_stats, |
999 | gettext_noop | ||
1000 | ("# successful address checks during validation"), 1, | ||
1001 | GNUNET_NO); | ||
1002 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Address `%s' is one of my addresses, confirming PING\n", | ||
1003 | GST_plugins_a2s (&address)); | ||
1004 | } | ||
995 | 1005 | ||
996 | if (GNUNET_YES != GST_hello_test_address (&address, &sig_cache, &sig_cache_exp)) | 1006 | if (GNUNET_YES != GST_hello_test_address (&address, &sig_cache, &sig_cache_exp)) |
997 | { | 1007 | { |