diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-11 20:13:43 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-10-11 20:13:43 +0200 |
| commit | c4c339fb5f7d786e587acb7a73f3d3fb0b1cd1c3 (patch) | |
| tree | 6a97be1cc9510d87ce912de8e316bb43e08eae87 /python | |
| parent | 7ff824f4432c82048e72ea8ec9a6b644b6539bac (diff) | |
| download | vyos-1x-c4c339fb5f7d786e587acb7a73f3d3fb0b1cd1c3.tar.gz vyos-1x-c4c339fb5f7d786e587acb7a73f3d3fb0b1cd1c3.zip | |
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.
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/frrender.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
