From d42e9d9b1af0edb88dd00a64498f0a9ff98844b3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Aug 2014 03:19:15 +0200 Subject: Don't output "adding peer" messages for static peers Otherwise log messages are emitted to early. --- src/peer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3