envknob: track, log env knobs in use

Fixes #3921

Change-Id: I8186053b5c09c43f0358b4e7fdd131361a6d8f2e
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-02-12 20:42:38 -08:00
committed by Brad Fitzpatrick
parent 2db6cd1025
commit a19c110dd3
2 changed files with 41 additions and 2 deletions

View File

@@ -170,6 +170,7 @@ func NewLocalBackend(logf logger.Logf, logid string, store ipn.StateStore, diale
if e == nil {
panic("ipn.NewLocalBackend: engine must not be nil")
}
envknob.LogCurrent(logf)
if dialer == nil {
dialer = new(tsdial.Dialer)
}