diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-05-14 16:50:22 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-05-14 16:50:22 +0000 |
commit | a8a95437e8782ef509fb64e1975a8c1ddd08eee0 (patch) | |
tree | 45981927a56882dcaf36105eb8417174aaa40585 | |
parent | a760c1b877f3a9ac17f2577cdc298f793c574407 (diff) | |
download | gnunet-a8a95437e8782ef509fb64e1975a8c1ddd08eee0.tar.gz gnunet-a8a95437e8782ef509fb64e1975a8c1ddd08eee0.zip |
- revert logging changes back to debug level
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index cd88ab1ca..15883b43e 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -1548,13 +1548,12 @@ handle_ping (struct CadetTunnel3 *t, | |||
1548 | t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv); | 1548 | t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv); |
1549 | if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) | 1549 | if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) |
1550 | { | 1550 | { |
1551 | // FIXME: move to debug | ||
1552 | GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO); | 1551 | GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO); |
1553 | LOG (GNUNET_ERROR_TYPE_WARNING, " malformed PING on %s\n", GMT_2s (t)); | 1552 | LOG (GNUNET_ERROR_TYPE_WARNING, " malformed PING on %s\n", GMT_2s (t)); |
1554 | LOG (GNUNET_ERROR_TYPE_WARNING, " e got %u\n", msg->nonce); | 1553 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e got %u\n", msg->nonce); |
1555 | LOG (GNUNET_ERROR_TYPE_WARNING, " e towards %s\n", GNUNET_i2s (&msg->target)); | 1554 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e towards %s\n", GNUNET_i2s (&msg->target)); |
1556 | LOG (GNUNET_ERROR_TYPE_WARNING, " got %u\n", res.nonce); | 1555 | LOG (GNUNET_ERROR_TYPE_DEBUG, " got %u\n", res.nonce); |
1557 | LOG (GNUNET_ERROR_TYPE_WARNING, " towards %s\n", GNUNET_i2s (&res.target)); | 1556 | LOG (GNUNET_ERROR_TYPE_DEBUG, " towards %s\n", GNUNET_i2s (&res.target)); |
1558 | send_ephemeral (t); | 1557 | send_ephemeral (t); |
1559 | send_ping (t); | 1558 | send_ping (t); |
1560 | return; | 1559 | return; |
@@ -1589,7 +1588,7 @@ handle_pong (struct CadetTunnel3 *t, | |||
1589 | if (challenge != t->kx_ctx->challenge) | 1588 | if (challenge != t->kx_ctx->challenge) |
1590 | { | 1589 | { |
1591 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong PONG challenge on %s\n", GMT_2s (t)); | 1590 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong PONG challenge on %s\n", GMT_2s (t)); |
1592 | LOG (GNUNET_ERROR_TYPE_WARNING, "PONG: %u (e: %u). Expected: %u.\n", | 1591 | LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG: %u (e: %u). Expected: %u.\n", |
1593 | challenge, msg->nonce, t->kx_ctx->challenge); | 1592 | challenge, msg->nonce, t->kx_ctx->challenge); |
1594 | send_ephemeral (t); | 1593 | send_ephemeral (t); |
1595 | send_ping (t); | 1594 | send_ping (t); |