diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-31 05:52:07 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-31 05:52:07 +0200 |
commit | 6c656c7394bb972e81cd291b0ab126b2e73ce499 (patch) | |
tree | ac64bf647bc3b0a6a07a2c36decab13daf8a791f /src/protocols/ec25519_fhmqvc | |
parent | ae429e372a412cec84c6f67477bd9d429c485ff7 (diff) | |
download | fastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.tar fastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.zip |
Make log levels verbose and info more useful
Diffstat (limited to 'src/protocols/ec25519_fhmqvc')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/handshake.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index 7374061..75dd974 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -523,10 +523,14 @@ void fastd_protocol_ec25519_fhmqvc_handshake_init(fastd_socket_t *sock, const fa fastd_handshake_add(&buffer, RECORD_SENDER_KEY, PUBLICKEYBYTES, &conf.protocol_config->key.public); - if (peer) + if (peer) { fastd_handshake_add(&buffer, RECORD_RECIPIENT_KEY, PUBLICKEYBYTES, &peer->protocol_config->public_key); - else - pr_debug("sending handshake to unknown peer %I", remote_addr); + + pr_verbose("sending handshake to %P[%I]...", peer, remote_addr); + } + else { + pr_verbose("sending handshake to unknown peer %I", remote_addr); + } fastd_handshake_add(&buffer, RECORD_SENDER_HANDSHAKE_KEY, PUBLICKEYBYTES, &ctx.protocol_state->handshake_key.key.public); |