summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 03:19:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 03:19:15 +0200
commitd42e9d9b1af0edb88dd00a64498f0a9ff98844b3 (patch)
tree1a839639828554303b6817e4e6a0b171bb7cc294
parent25c9d9351636be717664e745395fe016b86911be (diff)
downloadfastd-d42e9d9b1af0edb88dd00a64498f0a9ff98844b3.tar
fastd-d42e9d9b1af0edb88dd00a64498f0a9ff98844b3.zip
Don't output "adding peer" messages for static peers
Otherwise log messages are emitted to early.
-rw-r--r--src/peer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 0cc4f2d..aad752b 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -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;