Silence log messages on autoconnect

This commit is contained in:
thorkill 2016-05-14 23:21:36 +02:00
parent 39b23f7a11
commit 4401c645ab

View file

@ -217,12 +217,10 @@ static void periodic_handler(void *data) {
count++;
}
if(!count) {
logger(DEBUG_ALWAYS, LOG_INFO, "No more nodes available for autoconnect!");
if(!count)
goto end;
}
logger(DEBUG_ALWAYS, LOG_INFO, "%d active connections - autoconnecting to one of %d available nodes",
logger(DEBUG_STATUS, LOG_INFO, "%d active connections - autoconnecting to one of %d available nodes",
nc, count);
int r = rand() % count;