diff --git a/tstest/log.go b/tstest/log.go index c28199c63..f27d32906 100644 --- a/tstest/log.go +++ b/tstest/log.go @@ -139,3 +139,9 @@ func (ml *MemLogger) Logf(format string, args ...interface{}) { ml.Buffer.WriteByte('\n') } } + +func (ml *MemLogger) String() string { + ml.Lock() + defer ml.Unlock() + return ml.Buffer.String() +}