wgengine/magicsock: mark test logfunc as a helper.
Signed-off-by: David Anderson <danderson@tailscale.com>crawshaw/derpdial
parent
7eda3af034
commit
77af7e5436
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue