From 3fc7b6e052402dba9bf13bbff54ff6d99a87fd8e Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 6 Sep 2026 14:16:37 +0000 Subject: 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. --- python/vyos/defaults.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') 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' -- cgit v1.2.3