Undo testing_logger change, committed by mistake

This commit is contained in:
Anca Zamfir
2019-03-26 15:27:00 +01:00
parent 1278d06e93
commit 82903a9d13

View File

@ -30,6 +30,10 @@ 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 {