diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 03:19:15 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 03:19:15 +0200 |
commit | d42e9d9b1af0edb88dd00a64498f0a9ff98844b3 (patch) | |
tree | 1a839639828554303b6817e4e6a0b171bb7cc294 /src/peer.c | |
parent | 25c9d9351636be717664e745395fe016b86911be (diff) | |
download | fastd-d42e9d9b1af0edb88dd00a64498f0a9ff98844b3.tar fastd-d42e9d9b1af0edb88dd00a64498f0a9ff98844b3.zip |
Don't output "adding peer" messages for static peers
Otherwise log messages are emitted to early.
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -750,7 +750,8 @@ bool fastd_peer_add(fastd_peer_t *peer) { conf.protocol->init_peer_state(peer); - pr_verbose("adding peer %P", peer); + if (!fastd_peer_is_dynamic(peer) && peer->config_source_dir) + pr_verbose("adding peer %P", peer); return true; |