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. --- src/init/vyos-router | 1 + 1 file changed, 1 insertion(+) (limited to 'src/init') diff --git a/src/init/vyos-router b/src/init/vyos-router index 8e0a671a6..8e270602e 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -590,6 +590,7 @@ start () touch /tmp/vyos.ifconfig.debug touch /tmp/vyos.container.debug touch /tmp/vyos.smoketest.debug + touch /tmp/vyos.dhclient.debug fi # Cleanup PKI CAs -- cgit v1.2.3