]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Improve log messages in reconfiguration
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 22 May 2025 12:55:35 +0000 (14:55 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 22 May 2025 12:55:35 +0000 (14:55 +0200)
Use separate messages for import / export reload triggered by
reconfiguration.

nest/proto.c

index 14260d633d50079b233647169775049490bf8a3a..1aeea96c599708a5cb638e2738c3d2f48e4a247b 100644 (file)
@@ -906,14 +906,17 @@ channel_reconfigure(struct channel *c, struct channel_config *cf)
   if (import_changed && !channel_reloadable(c))
     return 0;
 
-  if (import_changed || export_changed)
-    log(L_INFO "Reloading channel %s.%s", c->proto->name, c->name);
-
   if (import_changed)
+  {
+    log(L_INFO "Reloading channel %s.%s for import", c->proto->name, c->name);
     channel_request_reload(c);
+  }
 
   if (export_changed)
+  {
+    log(L_INFO "Reloading channel %s.%s for export", c->proto->name, c->name);
     channel_request_feeding(c);
+  }
 
 done:
   CD(c, "Reconfigured");