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 /src/init | |
| 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 'src/init')
| -rwxr-xr-x | src/init/vyos-router | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
