mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-23 17:18:42 +00:00
Use provided prefix function
Signed-off-by: Wendi Yu <wendi.yu@yahoo.ca>
This commit is contained in:
@@ -193,15 +193,9 @@ type testNode struct {
|
||||
func newNode(t *testing.T, prefix string, https *httptest.Server, weirdPrefs bool) testNode {
|
||||
t.Helper()
|
||||
|
||||
logfe := func(fmt string, args ...interface{}) {
|
||||
t.Logf(prefix+".e: "+fmt, args...)
|
||||
}
|
||||
logfe = logger.RateLimitedFn(logfe, 1, 1, 100)
|
||||
logfe := logger.RateLimitedFn(logger.WithPrefix(t.Logf, prefix+"e: "), 1, 1, 100)
|
||||
|
||||
logf := func(fmt string, args ...interface{}) {
|
||||
t.Logf(prefix+": "+fmt, args...)
|
||||
}
|
||||
logf = logger.RateLimitedFn(logf, 1, 1, 100)
|
||||
logf := logger.RateLimitedFn(logger.WithPrefix(t.Logf, prefix+": "), 1, 1, 100)
|
||||
|
||||
var err error
|
||||
httpc := https.Client()
|
||||
|
Reference in New Issue
Block a user