This commit is contained in:
Anca Zamfir
2019-03-26 14:51:37 +01:00
parent 6428cba446
commit fd9b10f6fe
8 changed files with 274 additions and 77 deletions

View File

@ -30,10 +30,6 @@ func TestingLogger() Logger {
// inside a test (not in the init func) because
// verbose flag only set at the time of testing.
func TestingLoggerWithOutput(w io.Writer) Logger {
if _testingLogger != nil {
return _testingLogger
}
if testing.Verbose() {
_testingLogger = NewTMLogger(NewSyncWriter(w))
} else {