From c4c339fb5f7d786e587acb7a73f3d3fb0b1cd1c3 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 11 Oct 2025 20:13:43 +0200 Subject: frrender: T7764: reduce log level to notifications during normal operation There is no need for informational logging which adds quiet some noise to syslog. Informational logging can be enabled when FRR debug swtitch is set. --- python/vyos/frrender.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py index 0207adeb2..983934aa8 100644 --- a/python/vyos/frrender.py +++ b/python/vyos/frrender.py @@ -722,9 +722,13 @@ class FRRender: output = '!\n' # Enable FRR logging - output += 'log syslog\n' output += 'log facility daemon\n' output += 'log timestamp precision 3\n' + # Exdtend logging depending on operating mode + if os.path.exists(frr_debug_enable): + output += 'log syslog informational\n' + else: + output += 'log syslog notifications\n' # Enable SNMP agentx support # SNMP AgentX support cannot be disabled once enabled -- cgit v1.2.3