From ff197d9b1068d6a62de05d0ab502346b47ece9bb Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 26 Jan 2026 12:13:59 +0100 Subject: [PATCH] confd: reduce Frr default log level Was set to informational, and Zebra to debug, which is mostly useful for developers when debugging the integration of Frr daemons. Example of before this patch: Nov 4 13:44:09 infix-6f-05-e1 finit[1]: staticd[4366], stopping, sending SIGTERM ... Nov 4 13:44:09 infix-6f-05-e1 staticd[4366]: Terminating on signal Nov 4 13:44:09 infix-6f-05-e1 zebra[4221]: [N5M5Y-J5BPG][EC 4043309121] Client 'static' (session id 0) encountered an error and is shutting down. Nov 4 13:44:09 infix-6f-05-e1 zebra[4221]: [KQB7H-NPVW9] zebra/zebra_ptm.c:1333 failed to find process pid registration Nov 4 13:44:09 infix-6f-05-e1 zebra[4221]: [JPSA8-5KYEA] client 26 disconnected 1 static routes removed from the rib Nov 4 13:44:09 infix-6f-05-e1 zebra[4221]: [S929C-NZR3N] client 26 disconnected 0 static nhgs removed from the rib Nov 4 13:44:09 infix-6f-05-e1 finit[1]: Starting staticd[5529] Nov 4 13:44:09 infix-6f-05-e1 zebra[4221]: [V98V0-MTWPF] client 26 says hello and bids fair to announce only static routes vrf=0 Signed-off-by: Joachim Wiberg --- board/common/rootfs/etc/default/zebra | 2 +- src/confd/src/routing.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/common/rootfs/etc/default/zebra b/board/common/rootfs/etc/default/zebra index 5ce4e34c..4467b9af 100644 --- a/board/common/rootfs/etc/default/zebra +++ b/board/common/rootfs/etc/default/zebra @@ -1,2 +1,2 @@ # --log-level debug -ZEBRA_ARGS="-A 127.0.0.1 -u frr -g frr --log syslog " +ZEBRA_ARGS="-A 127.0.0.1 -u frr -g frr --log syslog --log-level err" diff --git a/src/confd/src/routing.c b/src/confd/src/routing.c index 194b503a..e9110e42 100644 --- a/src/confd/src/routing.c +++ b/src/confd/src/routing.c @@ -26,7 +26,7 @@ hostname Router\n\ password zebra \n\ enable password zebra\n\ no log unique-id\n\ -log syslog informational\n\ +log syslog warnings\n\ log facility local2\n" int parse_rip_redistribute(sr_session_ctx_t *session, struct lyd_node *redistributes, FILE *fp)