Add code for dumping log Msg values to TestingConfig

This commit is contained in:
Matt Joiner 2019-10-03 19:12:33 +10:00
parent 99fea719a6
commit ff9d845006
1 changed files with 9 additions and 0 deletions

View File

@ -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
}