diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-02-08 11:36:25 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-02-08 11:36:25 +0000 |
commit | 0cc9e15f6613fa10058b429de0350e5632d38695 (patch) | |
tree | 9d4b21260861fd3a32fa152fa81a4cfbde79d626 /src | |
parent | c52a4ce665a6061bd6224c3fe4cccb0bf648ced4 (diff) | |
download | gnunet-0cc9e15f6613fa10058b429de0350e5632d38695.tar.gz gnunet-0cc9e15f6613fa10058b429de0350e5632d38695.zip |
remove super verbosity
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 6a8b2db5e..5c6c37378 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -856,11 +856,6 @@ update_quota (struct NeighborList *n) | |||
856 | return; /* not enough time passed for doing quota update */ | 856 | return; /* not enough time passed for doing quota update */ |
857 | allowed = delta.value * n->quota_in; | 857 | allowed = delta.value * n->quota_in; |
858 | 858 | ||
859 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | | ||
860 | GNUNET_ERROR_TYPE_BULK, | ||
861 | _ | ||
862 | ("Update quota: last received is %llu, allowed is %llu\n"), n->last_received, allowed); | ||
863 | |||
864 | if (n->last_received < allowed) | 859 | if (n->last_received < allowed) |
865 | { | 860 | { |
866 | remaining = allowed - n->last_received; | 861 | remaining = allowed - n->last_received; |
@@ -882,10 +877,6 @@ update_quota (struct NeighborList *n) | |||
882 | n->last_quota_update = GNUNET_TIME_absolute_get (); | 877 | n->last_quota_update = GNUNET_TIME_absolute_get (); |
883 | if (n->last_received > allowed) | 878 | if (n->last_received > allowed) |
884 | { | 879 | { |
885 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING | | ||
886 | GNUNET_ERROR_TYPE_BULK, | ||
887 | _ | ||
888 | ("LAST RECEIVED: %llu greater than allowed : %llu\n"), n->last_received, allowed); | ||
889 | /* more than twice the allowed rate! */ | 880 | /* more than twice the allowed rate! */ |
890 | n->quota_violation_count += 10; | 881 | n->quota_violation_count += 10; |
891 | } | 882 | } |
@@ -2768,17 +2759,19 @@ handle_set_quota (void *cls, | |||
2768 | struct TransportPlugin *p; | 2759 | struct TransportPlugin *p; |
2769 | struct ReadyList *rl; | 2760 | struct ReadyList *rl; |
2770 | 2761 | ||
2771 | #if DEBUG_TRANSPORT | ||
2772 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2773 | "Received `%s' request from client for peer `%4s'\n", | ||
2774 | "SET_QUOTA", GNUNET_i2s (&qsm->peer)); | ||
2775 | #endif | ||
2776 | n = find_neighbor (&qsm->peer); | 2762 | n = find_neighbor (&qsm->peer); |
2777 | if (n == NULL) | 2763 | if (n == NULL) |
2778 | { | 2764 | { |
2779 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 2765 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
2780 | return; | 2766 | return; |
2781 | } | 2767 | } |
2768 | |||
2769 | #if DEBUG_TRANSPORT | ||
2770 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2771 | "Received `%s' request (new quota %u, old quota %u) from client for peer `%4s'\n", | ||
2772 | "SET_QUOTA", ntohl(qsm->quota_in), n->quota_in, GNUNET_i2s (&qsm->peer)); | ||
2773 | #endif | ||
2774 | |||
2782 | update_quota (n); | 2775 | update_quota (n); |
2783 | if (n->quota_in < ntohl (qsm->quota_in)) | 2776 | if (n->quota_in < ntohl (qsm->quota_in)) |
2784 | n->last_quota_update = GNUNET_TIME_absolute_get (); | 2777 | n->last_quota_update = GNUNET_TIME_absolute_get (); |
@@ -2822,7 +2815,7 @@ handle_try_connect (void *cls, | |||
2822 | else | 2815 | else |
2823 | { | 2816 | { |
2824 | #if DEBUG_TRANSPORT | 2817 | #if DEBUG_TRANSPORT |
2825 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2818 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2826 | "Client asked to connect to `%4s', but connection already exists\n", | 2819 | "Client asked to connect to `%4s', but connection already exists\n", |
2827 | "TRY_CONNECT", GNUNET_i2s (&tcm->peer)); | 2820 | "TRY_CONNECT", GNUNET_i2s (&tcm->peer)); |
2828 | #endif | 2821 | #endif |