From 1edf49be1473df111760970f35f1dbb1a078a50e Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 20 Jul 2015 11:09:45 +0200 Subject: [PATCH] Reduce logger calls --- src/net_setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index 5afad112..09580739 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -329,14 +329,13 @@ void regenerate_key(void) { } void update_edge_weight(void) { - logger(DEBUG_STATUS, LOG_INFO, "Update edge weight"); for list_each(connection_t, c, connection_list) { if (c->status.control || !c->edge) continue; if (c->edge->avg_rtt && (c->edge->weight != c->edge->avg_rtt*10)) { - logger(DEBUG_STATUS, LOG_INFO, "update_edge_weight(): %s -> %s (%d -> %d)", c->edge->from->name, + logger(DEBUG_STATUS, LOG_INFO, "%s: %s -> %s (%d -> %d)", __FUNCTION__, c->edge->from->name, c->edge->to->name, c->edge->weight, c->edge->avg_rtt*10);