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/peer.c | |
parent | ae429e372a412cec84c6f67477bd9d429c485ff7 (diff) | |
download | fastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.tar fastd-6c656c7394bb972e81cd291b0ab126b2e73ce499.zip |
Make log levels verbose and info more useful
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -304,8 +304,10 @@ static bool is_peer_in_group(const fastd_peer_t *peer, const fastd_peer_group_t After a call to reset_peer a peer must be deleted by delete_peer or re-initialized by setup_peer. */ static void reset_peer(fastd_peer_t *peer) { - if (fastd_peer_is_established(peer)) + if (fastd_peer_is_established(peer)) { on_disestablish(peer); + pr_info("connection with %P disestablished.", peer); + } free_socket(peer); @@ -794,7 +796,6 @@ static void send_handshake(fastd_peer_t *peer, fastd_remote_t *next_remote) { return; } - pr_debug("sending handshake to %P[%I]...", peer, &peer->address); peer->last_handshake_timeout = fastd_in_seconds(MIN_HANDSHAKE_INTERVAL); peer->last_handshake_address = peer->address; conf.protocol->handshake_init(peer->sock, &peer->local_address, &peer->address, peer); |