Don't output "adding peer" messages for static peers

Otherwise log messages are emitted to early.
This commit is contained in:
Matthias Schiffer 2014-08-24 03:19:15 +02:00
parent 25c9d93516
commit d42e9d9b1a

View file

@ -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;