From 4fc6d75e88ea5260061bb2a2fdbfc992517d4f68 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 7 Apr 2024 11:43:52 +0200 Subject: [PATCH] Fixed reporting about exported routes --- nest/rt-table.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/nest/rt-table.c b/nest/rt-table.c index 85f0194ff..14101d6c0 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -727,15 +727,12 @@ do_rt_notify(struct channel *c, const net_addr *net, rte *new, const rte *old) if (new) bmap_set(&c->export_map, new->id); - if (p->debug & D_ROUTES) - { - if (new && old) - channel_rte_trace_out(D_ROUTES, c, new, "replaced"); - else if (new) - channel_rte_trace_out(D_ROUTES, c, new, "added"); - else if (old) - channel_rte_trace_out(D_ROUTES, c, old, "removed"); - } + if (new && old) + channel_rte_trace_out(D_ROUTES, c, new, "replaced"); + else if (new) + channel_rte_trace_out(D_ROUTES, c, new, "added"); + else if (old) + channel_rte_trace_out(D_ROUTES, c, old, "removed"); p->rt_notify(p, c, net, new, old); } -- 2.47.2