wgengine/magicsock: mark test logfunc as a helper.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson 2020-03-10 17:32:38 -07:00
parent 7eda3af034
commit 77af7e5436

View File

@ -288,6 +288,7 @@ func runDERP(t *testing.T) (s *derp.Server, addr string, cleanupFn func()) {
func devLogger(t *testing.T, prefix string) *device.Logger {
pfx := []interface{}{prefix}
logf := func(format string, args ...interface{}) {
t.Helper()
t.Logf("%s: "+format, append(pfx, args...)...)
}
return &device.Logger{