]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Table: Adding route refresh begin and end debug messages
authorMaria Matejka <mq@ucw.cz>
Thu, 7 Dec 2023 12:54:41 +0000 (13:54 +0100)
committerMaria Matejka <mq@ucw.cz>
Thu, 7 Dec 2023 13:11:16 +0000 (14:11 +0100)
nest/rt-table.c

index e497524f391bb40fa839724a30c944fd64ffc783..e86768220c93286beeb116cd319db305e69db445 100644 (file)
@@ -1748,6 +1748,9 @@ rt_examine(rtable *t, net_addr *a, struct channel *c, const struct filter *filte
 void
 rt_refresh_begin(rtable *t, struct channel *c)
 {
+  if (c->debug & D_EVENTS)
+    log(L_TRACE "%s.%s: Route refresh begin", c->proto->name, c->name);
+
   FIB_WALK(&t->fib, net, n)
     {
       rte *e;
@@ -1769,6 +1772,9 @@ rt_refresh_begin(rtable *t, struct channel *c)
 void
 rt_refresh_end(rtable *t, struct channel *c)
 {
+  if (c->debug & D_EVENTS)
+    log(L_TRACE "%s.%s: Route refresh end", c->proto->name, c->name);
+
   int prune = 0;
 
   FIB_WALK(&t->fib, net, n)