diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-09-06 14:16:37 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-09-06 14:16:37 +0000 |
| commit | 3fc7b6e052402dba9bf13bbff54ff6d99a87fd8e (patch) | |
| tree | d3df349b646621cb0a6fcf00bd2336ca07969407 /python | |
| parent | 3f1e103d6774159fb7835c3562a1c1ab834cfd7a (diff) | |
| download | vyos-1x-3fc7b6e052402dba9bf13bbff54ff6d99a87fd8e.tar.gz vyos-1x-3fc7b6e052402dba9bf13bbff54ff6d99a87fd8e.zip | |
dhcp: T9278: move DHCP client hook tracing to a gated debug level
Each lease event emitted some fifteen daemon.info lines tracing internal steps
rather than recording a change. Add a "debug" level to logmsg(), silenced unless
/tmp/vyos.dhclient.debug exists, following the flag file convention used for FRR
and ifconfig. Demoting alone would not help, as journald shows all priorities by
default. Fifteen tracing messages move to debug; the sixteen recording an actual
change stay at info.
Also fix logmsg(): "warn" had no case arm although it is used, and the global
LOG_PRIO leaked the preceding call's priority. It is now local.
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/defaults.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/vyos/defaults.py b/python/vyos/defaults.py index 854f95ff0..23243346d 100644 --- a/python/vyos/defaults.py +++ b/python/vyos/defaults.py @@ -64,6 +64,7 @@ config_files = { config_status = '/tmp/vyos-config-status' api_config_state = '/run/http-api-state' frr_debug_enable = '/tmp/vyos.frr.debug' +dhclient_debug_enable = '/tmp/vyos.dhclient.debug' static_route_dhcp_interfaces_path = '/tmp/static_dhcp_interfaces' vyos_configd_socket_path = 'ipc:///run/vyos-configd.sock' |
