From 4c3f7c06fce196e7a014a7d791b7a8a5b66b1f27 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 12 Apr 2021 10:38:12 -0700 Subject: [PATCH] ipn/ipnlocal: be consistent in not logging when no notify registered Some paths already didn't. And in the future I hope to shut all the notify funcs down end-to-end when nothing is connected (as in the common case in tailscaled). Then we can save some JSON encoding work. Signed-off-by: Brad Fitzpatrick --- ipn/ipnlocal/local.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index f2a03d9f1..568f5db08 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -932,7 +932,6 @@ func (b *LocalBackend) send(n ipn.Notify) { b.mu.Unlock() if notifyFunc == nil { - b.logf("nil notify callback; dropping %+v", n) return }