From ff9d84500601eb34ff0b2115a2d18531d534c7dc Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 3 Oct 2019 19:12:33 +1000 Subject: [PATCH] Add code for dumping log Msg values to TestingConfig --- client_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client_test.go b/client_test.go index 18288e4e..fec7bb9d 100644 --- a/client_test.go +++ b/client_test.go @@ -38,6 +38,15 @@ func TestingConfig() *ClientConfig { cfg.NoDefaultPortForwarding = true cfg.DisableAcceptRateLimiting = true cfg.ListenPort = 0 + //cfg.Debug = true + //cfg.Logger = cfg.Logger.WithText(func(m log.Msg) string { + // t := m.Text() + // m.Values(func(i interface{}) bool { + // t += fmt.Sprintf("\n%[1]T: %[1]v", i) + // return true + // }) + // return t + //}) return cfg } -- 2.48.1